
CVE catalog
CVE-2026-40188
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
- Severity
- High · CVSS 7.7
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.32% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Cpe | goshs | Not reported | 2.0.0 | fixed |
| Cpe | goshs | Not reported | Not reported | unknown |
| Cpe | goshs | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Cpe | goshs | cpe | Not reported | 2.0.0 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10542-1.json]
- [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://nvd.nist.gov/vuln/detail/CVE-2026-40188]
[FIRST EPSS] · [National Vulnerability Database (NVD)] · [SUSE security advisories and VEX]