Vulnerability · Published Apr 6, 2026 · Assigned by GitHub_M
CVE-2026-35392goshs has an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs PUT Upload
Critical 9.8
In plain English
A critical-severity path traversal in goshs from patrickhener. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)9.8Critical
Exploit odds (30 days)0.7%top 48.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, PUT upload in httpserver/updown.go has no path sanitization. This vulnerability is fixed in 2.0.0-beta.3.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/patrickhener/goshs | 1.1.5-0.20260401172448-237f3af891a9 | GHSA-g8mv-vp7j-qp64 |
| Go | github.com/patrickhener/goshs | 1.1.5-0.20260401172448-237f3af891a9 | GO-2026-5394 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| patrickhener | goshs | < 2.0.0-beta.3 |
Weakness: CWE-22 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/patrickhener/goshs/security/advisories/GHSA-g8mv-vp7j-qp64 x_refsource_CONFIRM