{"id":"GHSA-6xv5-86q9-7xr8","revision":"a5f8b39cbe61421d8292dfd07c068924","records":[{"revision":"a5f8b39cbe61421d8292dfd07c068924","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-6xv5-86q9-7xr8","aliases":["GO-2023-2048"],"title":"SecureJoin: on windows, paths outside of the rootfs could be inadvertently produced","description":"### Impact\nFor Windows users of `github.com/cyphar/filepath-securejoin`, until v0.2.4 it was possible for certain rootfs and path combinations (in particular, where a malicious Unix-style `/`-separated unsafe path was used with a Windows-style rootfs path) to result in generated paths that were outside of the provided rootfs.\n\nIt is unclear to what extent this has a practical impact on real users, but given the possible severity of the issue we have released an emergency patch release that resolves this issue.\n\nThanks to  @pjbgf for discovering, debugging, and fixing this issue (as well as writing some tests for it).\n\n### Patches\nc121231e1276e11049547bee5ce68d5a2cfe2d9b is the patch fixing this issue. v0.2.4 contains the fix.\n\n### Workarounds\nUsers could use `filepath.FromSlash()` on all unsafe paths before passing them to `filepath-securejoin`.\n\n### References\nSee #9.","state":0,"publishedAt":"2023-09-07T12:58:58+00:00","modifiedAt":"2026-09-10T03:49:57.9659178+00:00","affected":[{"ecosystem":"Go","name":"github.com/cyphar/filepath-securejoin","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.2.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/cyphar/filepath-securejoin/security/advisories/GHSA-6xv5-86q9-7xr8","https://github.com/cyphar/filepath-securejoin/pull/9","https://github.com/cyphar/filepath-securejoin/commit/c121231e1276e11049547bee5ce68d5a2cfe2d9b","https://github.com/cyphar/filepath-securejoin","https://github.com/cyphar/filepath-securejoin/releases/tag/v0.2.4"],"sourceUrl":"https://github.com/advisories/GHSA-6xv5-86q9-7xr8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6xv5-86q9-7xr8","identifiers":["GHSA-6xv5-86q9-7xr8","GO-2023-2048"]},"retained":false,"historicalAffected":[]}],"coverage":[]}