Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-40188
VULNERABILITY

CVE-2026-40188

Common Vulnerabilities and Exposures record

HIGH

Summary

goshs is a SimpleHTTPServer written in Go. From 1.0.7 to before 2.0.0-beta.4, the SFTP command rename sanitizes only the source path and not the destination, so it is possible to write outside of the root directory of the SFTP. This vulnerability is fixed in 2.0.0-beta.4.

Risk

CVSS
7.7
Severity
HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Timeline

Published
Apr 10, 2026 20:16
Modified
Oct 26, 2026 21:10
Last observed
Oct 26, 2026 19:00

CWE

CWE-1314

Affected product identifiers

cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*

References