{"schemaVersion":3,"id":"CVE-2026-66063","aliases":["GHSA-wg2q-39h6-66x9","GO-2026-6137"],"status":"published","duplicateOf":null,"title":"goshs has a Path Traversal issue","description":"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.","dates":{"published":"2026-07-28T22:07:15.558Z","modified":"2026-07-29T14:10:09.074Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":10,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00343,"percentile":0.26621,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.10999999999999999,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00233},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00343,"percentile":0.26621}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00233,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00343,"percentile":0.26621}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"github.com/patrickhener","product":"goshs","name":"github.com/patrickhener/goshs","label":"goshs","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/patrickhener/goshs","purlType":"golang","versions":[{"text":"≤ 1.1.4","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 1.1.4 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/patrickhener/goshs","product":"v2","name":"github.com/patrickhener/goshs/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/patrickhener/goshs/v2","purlType":"golang","versions":[{"text":"< 2.1.5-0.20260727065949-f3ef599e4091","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.5-0.20260727065949-f3ef599e4091","eol":null,"hubHref":null},{"vendor":"goshs.de","product":"goshs","name":"goshs.de/goshs","label":"goshs","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/goshs.de/goshs","purlType":"golang","versions":[{"text":"≤ 1.1.4","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 1.1.4 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"goshs.de/goshs","product":"v2","name":"goshs.de/goshs/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/goshs.de/goshs/v2","purlType":"golang","versions":[{"text":"< 2.1.5-0.20260727065949-f3ef599e4091","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.5-0.20260727065949-f3ef599e4091","eol":null,"hubHref":null},{"vendor":"goshs-labs","product":"goshs","name":"goshs","label":"goshs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.5","eol":null,"hubHref":"/vendor/goshs-labs/goshs"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-wg2q-39h6-66x9","label":"github.com/goshs-labs/goshs/security/advisories/GHSA-wg2q-39h6-66x9","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory"]},{"url":"https://github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54fa","label":"github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54fa","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/goshs-labs/goshs","label":"github.com/goshs-labs/goshs","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21761-1","SUSE-SU-2026:23625-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21761-1","SUSE-SU-2026:23625-1"]},"timeline":[{"kind":"published","date":"2026-07-28T22:07:15.558Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-29T14:10:09.074Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T21:19:04.564Z","stale":false,"partial":false}}