{"id":"CVE-2026-66063","published":"2026-07-28T22:07:15Z","modified":"2026-07-29T14:10:09Z","title":"goshs has a Path Traversal issue","vendor":"goshs-labs","product":"goshs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00343,"percentile":0.28597,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-wg2q-39h6-66x9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54fa","tags":["x_refsource_MISC"]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":5.72},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"goshs-labs","affectedVersions":[{"vendor":"goshs-labs","product":"goshs","versions":["< 2.1.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-29T14:09:21.054164Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"goshs.de/goshs/v2","vulnerableRanges":["<2.1.5-0.20260727065949-f3ef599e4091"],"patched":["2.1.5-0.20260727065949-f3ef599e4091"],"from":["GHSA-wg2q-39h6-66x9","GO-2026-6137"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/patrickhener/goshs/v2","vulnerableRanges":["<2.1.5-0.20260727065949-f3ef599e4091"],"patched":["2.1.5-0.20260727065949-f3ef599e4091"],"from":["GHSA-wg2q-39h6-66x9"],"provenance":"source"},{"ecosystem":"Go","package":"goshs.de/goshs","vulnerableRanges":["<=1.1.4","all versions"],"patched":[],"from":["GHSA-wg2q-39h6-66x9","GO-2026-6137"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/patrickhener/goshs","vulnerableRanges":["<=1.1.4","all versions"],"patched":[],"from":["GHSA-wg2q-39h6-66x9","GO-2026-6137"],"provenance":"source"}],"summary":{"text":"The goshs file server (product goshs, from goshs-labs) has a path traversal flaw in the multipart upload handler in httpserver/updown.go: it splits the uploaded filename on \"/\" but does not reject \"..\" sequences. An attacker with network access and no authentication or user interaction can upload a file with a crafted \"..\" filename to write a file outside the served directory tree.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:48Z"},"euvd":{"id":"EUVD-2026-50082","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patrickhener-goshs-cve-2026-35471","parents":[{"from":"CVE-2026-54719","to":"CVE-2026-66063","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["httpserver/updown.go"],"commits":["https://github.com/goshs-labs/goshs/commit/7cf911a26ace737e1a55b7dc073e307a25f7fd1d","https://github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54fa"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-54719","published":"2026-07-28","fixed":"2.1.1","kev":false},{"cve":"CVE-2026-62325","published":"2026-07-28","fixed":"2.1.4","kev":false,"link":{"from":"CVE-2026-62325","to":"CVE-2026-66063","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/patrickhener/goshs/v2","fromFixed":"2.1.4","toFixed":"2.1.5-0.20260727065949-f3ef599e4091","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:goshs.de/goshs/v2","fromFixed":"2.1.4","toFixed":"2.1.5-0.20260727065949-f3ef599e4091","daysApart":0}]}},{"cve":"CVE-2026-64863","published":"2026-07-28","fixed":"2.1.4","kev":false},{"cve":"CVE-2026-66063","published":"2026-07-28","fixed":"2.1.5-0.20260727065949-f3ef599e4091","kev":false},{"cve":"CVE-2026-66064","published":"2026-07-28","fixed":"2.1.5-0.20260727065949-f3ef599e4091","kev":false}],"package":"Go:github.com/patrickhener/goshs/v2"}}