high7.7
CVE-2026-40188
goshs is Missing Write Protection for Parametric Data Values
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/patrickhener/goshs | >= 1.0.7, <= 1.1.4 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Goshs | Goshs | from 1.0.7 before 2.0.0 Version 2.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744
- https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4
- https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
- https://github.com/advisories/GHSA-2943-crp8-38xx
- https://nvd.nist.gov/vuln/detail/CVE-2026-40188