Skip to content

CVE-2026-40188 goshs is Missing Write Protection for Parametric Data Values

HighCVSS 7.7 EPSS 0.32%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

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.

Upgrade path

3 packages: 1 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
patrickhener goshs(Go) >= 1.0.7; >= 1.0.7, <= 1.1.4 after 1.1.4 Partially fixed
goshs = 2.0.0-beta1; = 2.0.0-beta2; = 2.0.0-beta3; >= 1.0.7, < 2.0.0 2.0.0 Fixed
patrickhener goshs = >= 1.0.7, < 2.0.0-beta.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
patrickhener goshs(Go) >= 1.0.7, <= 1.1.4 No fix listed
patrickhener goshs(Go) >= 1.0.7 No fix listed
patrickhener goshs = >= 1.0.7, < 2.0.0-beta.4 No fix listed
goshs >= 1.0.7, < 2.0.0 2.0.0
goshs = 2.0.0-beta1 No fix listed
goshs = 2.0.0-beta2 No fix listed
goshs = 2.0.0-beta3 No fix listed

References