CVE-2026-35471
CRITICAL 9.8CVSS 3.0goshs: Improper Limitation of a Pathname to a Restricted Directory (Path Traversal)
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.
- Published
- 6 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-6qcc-6q27-whp8GO-2026-5186
- Sources
- NVDJSONOSV GHSA-6qcc-6q27-whp8JSONOSV GO-2026-5186JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:* |
< 2.0.0 | 2.0.0 |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:* |
= 2.0.0 | |
| NVD | goshs | goshscpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:* |
= 2.0.0 | |
| OSV | Go | github.com/patrickhener/goshs | < 1.1.5-0.20260401172448-237f3af891a9 | 1.1.5-0.20260401172448-237f3af891a9 |
References
- https://github.com/patrickhener/goshs/security/advisories/GHSA-6qcc-6q27-whp8 · Exploit, Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-35471 · ADVISORY
- https://github.com/patrickhener/goshs/commit/237f3af891a90df9b903b85f1cd3438040ca261a · WEB, FIX
- https://github.com/patrickhener/goshs · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 3 Apr 2026)