{"id":"EUVD-2026-24260","revision":"714628f0a80b410e8c4cbe09fc388ee7","records":[{"revision":"714628f0a80b410e8c4cbe09fc388ee7","observedAt":"2026-10-28T05:02:37.035+00:00","statement":{"source":"euvd","id":"EUVD-2026-24260","aliases":["CVE-2026-40876","GHSA-5h6h-7rc9-3824"],"title":"goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP root escape caused by prefix-based path validation. An authenticated SFTP user can read from and write to filesystem paths outside the configured SFTP …","description":"goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP root escape caused by prefix-based path validation. An authenticated SFTP user can read from and write to filesystem paths outside the configured SFTP root, which breaks the intended jail boundary and can expose or modify unrelated server files. The SFTP subsystem routes requests through sftpserver/sftpserver.go into DefaultHandler.GetHandler() in sftpserver/handler.go, which forwards file operations into readFile, writeFile, listFile, and cmdFile. All of those sinks rely on sanitizePath() in sftpserver/helper.go. helper.go uses a raw string-prefix comparison, not a directory-boundary check. Because of that, if the configured root is /tmp/goshsroot, then a sibling path such as /tmp/goshsroot_evil/secret.txt incorrectly passes validation since it starts with the same byte prefix. This vulnerability is fixed in 2.0.0-beta.6.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.7,"severity":null}],"references":["https://github.com/patrickhener/goshs/security/advisories/GHSA-5h6h-7rc9-3824"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-24260","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 21, 2026, 7:34:19 PM","dateUpdated":"Apr 22, 2026, 1:29:26 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-24260","identifiers":["EUVD-2026-24260","CVE-2026-40876","GHSA-5h6h-7rc9-3824"]},"retained":false,"historicalAffected":[]}],"coverage":[]}