# CVE-2026-35471: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs

- 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-03T21:58:47.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-6qcc-6q27-whp8, GO-2026-5186
- 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, tdeleteFile() missing return after path traversal check. 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-6qcc-6q27-whp8> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35471> (advisory)
- <https://github.com/patrickhener/goshs/commit/237f3af891a90df9b903b85f1cd3438040ca261a> (fix, web)
- <https://github.com/patrickhener/goshs> (package)

## Sources

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

---

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