CVE-2026-66063
mediumPriorität · verfolgen · 0EPSS 0.003 · 28. PerzentilEUUSEPSS · bewertet 2026-10-29
goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.5, the httpserver/updown.go multipart upload handler split part.FileName() on / but did not reject .., allowing an unauthenticated upload with filename .. to create a file outside the served tree. This issue is fixed in version 2.1.5.
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen
SSVC
Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (7)
Betroffene Produkte und Versionsbereiche.
- Go github.com/patrickhener/goshs/v2< 2.1.5-0.20260727065949-f3ef599e4091osvUSpkg:golang/github.com/patrickhener/goshs/v2
Advisories (2)
Hersteller- und Ökosystem-Meldungen dazu.
- GHSA-wg2q-39h6-66x9goshs has a Path Traversal issue2026-07-28ghsa · osvUS
## 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.
- GO-2026-6137goshs has a Path Traversal issue in github.com/patrickhener/goshs2026-08-18vendor · osvUS
goshs has a Path Traversal issue in github.com/patrickhener/goshs
auch bekannt als (5)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (7)
Externe Belege — Patches, Meldungen, Analysen.
- https://github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54facnnvd
- https://github.com/goshs-labs/goshs/releasesPatchcnnvd
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-wg2q-39h6-66x9cnnvd
- https://github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54faenisa_euvd
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-wg2q-39h6-66x9enisa_euvd
- https://github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54fanvd
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-wg2q-39h6-66x9nvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan