Path Traversal in Goshs
CVE-2026-40876
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP root escape caused by prefix-based path validation. An authenticated SFTP user can read from and write to filesystem paths outside the configured SFTP…
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.004 (35.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Goshs — versions 2.0.0
- Patrickhener Goshs — versions < 2.0.0-beta.6
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-40876?
- CVE-2026-40876 is a high-severity vulnerability in Goshs, classified under Path Traversal. CVSS score: 8.8/10. Published 2026-04-21.
- How severe is CVE-2026-40876?
- High severity. CVSS v3 base score is 8.8 out of 10.