Loading advisory.
Loading advisory.
goshs has a Path Traversal issue
The multipart upload filename fix splits on the path separator but never rejects dot-dot, allowing a write outside the served tree.
Published 2026-07-28 22:07 UTC · Modified 2026-08-18 15:10 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| goshs.de/goshs/v2 | Go | < 2.1.5-0.20260727065949-f3ef599e4091 | 2.1.5-0.20260727065949-f3ef599e4091 | go get goshs.de/goshs/v2@v2.1.5-0.20260727065949-f3ef599e4091 |
| github.com/patrickhener/goshs/v2 | Go | < 2.1.5-0.20260727065949-f3ef599e4091 | 2.1.5-0.20260727065949-f3ef599e4091 | go get github.com/patrickhener/goshs/v2@v2.1.5-0.20260727065949-f3ef599e4091 |
| goshs.de/goshs | Go | <= 1.1.4 all versions | No patch yet | No command until a fix exists. |
| github.com/patrickhener/goshs | Go | <= 1.1.4 all versions | No patch yet | No command until a fix exists. |
The multipart upload filename fix splits on the path separator but never rejects dot-dot, allowing a write outside the served tree.
The multipart filename fix (updown.go lines 135-136) splits on the path separator but never rejects "..". Uploading with filename=".." results in os.Create against the parent of the upload folder with a trailing marker character, outside the served tree, and the subsequent failed rename leaves that file behind. Verified: a file containing ESCAPED_WRITE_PROOF was written outside the webroot, unauthenticated, with the default configuration. Not claimed: a Windows-specific variant (Go's Part.FileName() already applies filepath.Base).
Reject any upload filename that is "..", is empty after sanitisation, or resolves outside the upload folder; validate the final resolved destination rather than only transforming the input.
AI assistance was used while investigating. The finding was reproduced against a running server on loopback.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.003 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |