{"id":"GO-2026-5146","summary":"SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs","details":"SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs","aliases":["CVE-2026-40876","GHSA-5h6h-7rc9-3824"],"modified":"2026-06-25T18:45:25.239468942Z","published":"2026-06-25T18:26:48Z","database_specific":{"review_status":"UNREVIEWED","url":"https://pkg.go.dev/vuln/GO-2026-5146"},"references":[{"type":"ADVISORY","url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-5h6h-7rc9-3824"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40876"},{"type":"WEB","url":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0"}],"affected":[{"package":{"name":"github.com/patrickhener/goshs","ecosystem":"Go","purl":"pkg:golang/github.com/patrickhener/goshs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2026-5146.json"}},{"package":{"name":"github.com/patrickhener/goshs/v2","ecosystem":"Go","purl":"pkg:golang/github.com/patrickhener/goshs/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2026-5146.json"}}],"schema_version":"1.7.5"}