{"id":"GO-2026-4970","aliases":["BIT-golang-2026-39822","CVE-2026-39822"],"title":"Root escape via symlink plus trailing slash in os","titleSource":"OSV","descriptionSource":"OSV","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.","severity":"unknown","score":null,"published":"2026-07-07T21:34:47.000Z","modified":"2026-11-14T13:12:14.914Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Go","name":"stdlib","sources":[{"name":"OSV · GO-2026-4970","url":"https://osv.dev/vulnerability/GO-2026-4970"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"1.25.12"},{"introduced":"1.26.0-0"},{"fixed":"1.26.5"},{"introduced":"1.27.0-0"},{"fixed":"1.27.0-rc.2"}],"type":"SEMVER"}],"versions":[],"fixed":["1.25.12","1.26.5","1.27.0-rc.2"]}],"sourceAffected":[],"references":["https://go.dev/issue/79005","https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc","https://go.dev/cl/797880"],"sources":[{"name":"OSV","id":"GO-2026-4970","modified":"2026-11-14T13:12:14.914147340Z","url":"https://osv.dev/vulnerability/GO-2026-4970"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-14T15:22:05.105Z","kev":{"status":"not-listed","checkedAt":"2026-11-15T01:30:33.103Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-14T15:26:11.117Z","attemptedAt":"2026-11-14T15:26:11.117Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-14T15:25:35.940Z","attemptedAt":"2026-11-14T15:25:35.940Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-14T15:25:35.917Z","attemptedAt":"2026-11-14T15:25:35.917Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-14T15:25:36.150Z","attemptedAt":"2026-11-14T15:25:36.150Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-42316","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-42316","modified":"Jul 8, 2026, 7:39:17 PM","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-11-14T15:25:35.917Z"},{"source":"GitHub Advisory Database","id":"GHSA-xcgv-8mv7-v8c7","url":"https://github.com/advisories/GHSA-xcgv-8mv7-v8c7","modified":"2026-07-08T21:30:27Z","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-11-14T15:25:35.940Z"},{"source":"FIRST EPSS","id":"CVE-2026-39822","url":"https://www.first.org/epss/","probability":0.00232,"percentile":0.14243,"date":"2026-11-14","checkedAt":"2026-11-14T15:25:36.150Z"},{"source":"NVD","id":"CVE-2026-39822","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822","modified":"2026-10-25T17:10:00.197","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-11-14T15:26:11.117Z"}],"aiSummary":null}