CVE-2026-40188: goshs is a SimpleHTTPServer written in Go
CVE-2026-40188 is a high-severity flaw (CVSS 7.7) affecting goshs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.7 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 75%) |
| CISA exploited list | No |
| Weakness | CWE-1314 |
| Published | 2026-04-10 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40188?
goshs: upgrade to 2.0.0. Exact commands for each OS are on this page.
Is CVE-2026-40188 being exploited?
CVE-2026-40188 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40188 affect?
CVE-2026-40188 affects goshs. Severity is high (CVSS 7.7). 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 vulnera
How urgent is CVE-2026-40188?
Priority 38/100. High severity; Public exploit reference
Related CVEs
- CVE-2026-40189 CRITICAL 9.8 UPGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40876 HIGH 8.8 UPGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40884 CRITICAL 9.8 UPGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40885 HIGH 8.8 DOWNGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40903 CRITICAL 9.1 UPGRADE goshs is a SimpleHTTPServer written in Go