mediumCVSS 6.5Vulnerability

CVE-2026-66063

## Summary The multipart upload filename fix splits on the path separator but never rejects dot-dot, allowing a write outside the served tree. ## Finding (Medium): upload filename escapes the served tree (residual of CVE-2026-35393) 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). ## Suggested fixes 1. 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. ## Tooling AI assistance was used while investigating. The finding was reproduced against a running server on loopback.

Properties

summary
goshs has a Path Traversal issue
severity
medium
epss_score
0.00233
cvss_score
6.5
ghsa_published
2026-07-28T22:08:53Z
source_url
https://github.com/advisories/GHSA-wg2q-39h6-66x9
ghsa_updated
2026-07-28T22:10:04Z
ghsa_id
GHSA-wg2q-39h6-66x9
cve_id
CVE-2026-66063
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
is_ghsa_only
false
epss_percentile
0.14112

Related Entities (11)

ENRICHED_BY (1)

[Source]FIRST EPSS

VULNERABLE_TO (4)

[Software]go/goshs.de/goshs/v2
[Software]go/github.com/patrickhener/goshs
[Software]go/github.com/patrickhener/goshs/v2
[Software]go/goshs.de/goshs

AFFECTS (4)

[Software]go/goshs.de/goshs/v2
[Software]go/github.com/patrickhener/goshs
[Software]go/goshs.de/goshs
[Software]go/github.com/patrickhener/goshs/v2

HAS_WEAKNESS (1)

[Weakness]Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph