{"schemaVersion":3,"id":"CVE-2026-66064","aliases":["GHSA-964w-f6gj-5236","GO-2026-6134"],"status":"published","duplicateOf":null,"title":null,"description":"goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.5, the httpserver/handler.go sendFile handler opened files using a cleaned path but derived the authorization filename from raw req.URL.Path, so a trailing slash could bypass .goshs ACL-file protection and block-list checks. This issue is fixed in version 2.1.5.","dates":{"published":"2026-07-28T22:12:04.830Z","modified":"2026-07-29T15:24:11.484Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"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:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00445,"percentile":0.37646,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.137,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00308},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00445,"percentile":0.37646}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00445,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00445,"percentile":0.37646}]},"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-41","name":"Improper Resolution of Path Equivalence","description":"The product is vulnerable to file system contents disclosure through path equivalence. Path equivalence involves the use of special characters in file and directory names. The associated manipulations are intended to generate multiple names for the same object.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/41.html"},{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.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-964w-f6gj-5236","label":"github.com/goshs-labs/goshs/security/advisories/GHSA-964w-f6gj-5236","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory"]},{"url":"https://github.com/goshs-labs/goshs/pull/222","label":"github.com/goshs-labs/goshs/pull/222","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"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:12:04.830Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-29T15:24:11.484Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T16:30:25.866Z","stale":false,"partial":false}}