Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Goshs | Goshs | >= 1.0.7, < 2.0.0 |
Related Weaknesses (CWE)
References
- https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7dPatch
- https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4ProductRelease Notes
- https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xxExploitVendor Advisory
- https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xxExploitVendor Advisory
FAQ
What is CVE-2026-40188?
CVE-2026-40188 is a vulnerability with a CVSS score of 7.7 (HIGH). 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 ...
How severe is CVE-2026-40188?
CVE-2026-40188 has been rated HIGH with a CVSS base score of 7.7/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-40188?
Check the references section above for vendor advisories and patch information. Affected products include: Goshs Goshs.