{"id":"GO-2026-4970","revision":"17d70b5640bb4b5993af4190a67d2c61","records":[{"revision":"17d70b5640bb4b5993af4190a67d2c61","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-4970","aliases":["BIT-golang-2026-39822","CVE-2026-39822"],"title":"Root escape via symlink plus trailing slash in os","description":"On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /.\n\nFor example, 'root.Open(\"symlink/\")' will open \"symlink\" even when \"symlink\" is a symbolic link pointing outside of the root.","state":0,"publishedAt":"2026-07-07T21:34:47+00:00","modifiedAt":"2026-09-16T10:41:36.5780149+00:00","affected":[{"ecosystem":"Go","name":"stdlib","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.25.12"},{"kind":"introduced","version":"1.26.0-0"},{"kind":"fixed","version":"1.26.5"},{"kind":"introduced","version":"1.27.0-0"},{"kind":"fixed","version":"1.27.0-rc.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/issue/79005","https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc","https://go.dev/cl/797880"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-4970","license":"OSV · upstream source license applies","key":"osv:GO-2026-4970","identifiers":["GO-2026-4970","BIT-golang-2026-39822","CVE-2026-39822"]},"retained":false,"historicalAffected":[]}],"coverage":[]}