# CVE-2026-35392: goshs has an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs PUT Upload

- Severity: Critical 9.8 (CVSS:3.0, scored by GitHub_M) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-03T04:07:55.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-g8mv-vp7j-qp64, GO-2026-5394
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- patrickhener goshs: < 2.0.0-beta.3
- github.com/patrickhener/goshs (Go): before 1.1.5-0.20260401172448-237f3af891a9
- goshs goshs: before 2.0.0; 2.0.0

## Every score

- GitHub_M: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 9.8 Critical `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> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35392> (advisory)
- <https://github.com/patrickhener/goshs> (package)

## Sources

- CVE List: [CVE-2026-35392](https://www.cve.org/CVERecord?id=CVE-2026-35392), CVE Terms of Use, modified 2026-04-07
- GitHub Advisory Database: [GHSA-g8mv-vp7j-qp64](https://github.com/advisories/GHSA-g8mv-vp7j-qp64), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5394](https://pkg.go.dev/vuln/GO-2026-5394), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-35392](https://nvd.nist.gov/vuln/detail/CVE-2026-35392), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-35392 · Whole record: https://cve.day/CVE-2026-35392.json · Rebuilt by cve.day 2026-11-25T22:59:18.066Z
