{"id":"GO-2026-5146","revision":"b5f591b5afbf47479d5251317754dc09","records":[{"revision":"b5f591b5afbf47479d5251317754dc09","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5146","aliases":["CVE-2026-40876","GHSA-5h6h-7rc9-3824"],"title":"SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs","description":"SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs","state":0,"publishedAt":"2026-06-25T18:26:48+00:00","modifiedAt":"2026-06-25T18:45:25.2394689+00:00","affected":[{"ecosystem":"Go","name":"github.com/patrickhener/goshs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/patrickhener/goshs/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/patrickhener/goshs/security/advisories/GHSA-5h6h-7rc9-3824","https://nvd.nist.gov/vuln/detail/CVE-2026-40876","https://github.com/patrickhener/goshs/releases/tag/v2.0.0"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5146","license":"OSV · upstream source license applies","key":"osv:GO-2026-5146","identifiers":["GO-2026-5146","CVE-2026-40876","GHSA-5h6h-7rc9-3824"]},"retained":false,"historicalAffected":[]}],"coverage":[]}