Vulnerability Details CVE-2026-40188
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.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.0
EPSS Ranking 6.8%
CVSS Severity
CVSS v3 Score 7.7
Products affected by CVE-2026-40188
-
cpe:2.3:a:goshs:goshs:1.0.7
-
cpe:2.3:a:goshs:goshs:1.0.8
-
cpe:2.3:a:goshs:goshs:1.0.9
-
cpe:2.3:a:goshs:goshs:1.1.0
-
cpe:2.3:a:goshs:goshs:1.1.1
-
cpe:2.3:a:goshs:goshs:1.1.2
-
cpe:2.3:a:goshs:goshs:1.1.3
-
cpe:2.3:a:goshs:goshs:1.1.4
-
cpe:2.3:a:goshs:goshs:2.0.0