CVE-2026-40188

goshs is Missing Write Protection for Parametric Data Values

State
Published
Severity
7.7 High
Published
Apr 10, 2026
Updated
Apr 13, 2026
Reserved
Apr 9, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:NGitHub_M

Weaknesses

  • CWE-1314 Missing Write Protection for Parametric Data Values

Affected Products

ProductVersions
goshspatrickhener
  • >= 1.0.7, < 2.0.0-beta.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.