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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744 patch
- github.com product
- https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4 product release-notes
- github.com