{"id":"CVE-2026-39822","published":"2026-07-08T15:46:27Z","modified":"2026-07-08T19:39:17Z","title":"Root escape via symlink plus trailing slash in os","vendor":"Go standard library","product":"os","tier":"tail","description":{"text":"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 /. For example, 'root.Open(\"symlink/\")' will open \"symlink\" even when \"symlink\" is a symbolic link pointing outside of the root.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00182,"percentile":0.04582,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://go.dev/issue/79005","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc","tags":[]},{"url":"https://go.dev/cl/797880","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-4970","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.92},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"os","versions":["< 1.25.12",">= 1.26.0-0, < 1.26.5",">= 1.27.0-0, < 1.27.0-rc.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-08T18:06:16.360721Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.25.12",">=1.26.0-0, <1.26.5",">=1.27.0-0, <1.27.0-rc.2"],"patched":["1.25.12","1.26.5","1.27.0-rc.2"],"from":["GO-2026-4970"],"provenance":"source"}],"summary":{"text":"The flaw is in the os package of the Go standard library, where opening a file through an os.Root on Unix systems fails to keep path resolution inside the Root when the final path component is a symbolic link and the path ends in a trailing slash. An attacker who can influence the path passed to root.Open, and who has local access and some low-privilege authentication, can cause a symlink such as \"symlink/\" to be followed to a location outside the Root, reading or modifying files beyond the intended boundary, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:16Z"},"euvd":{"id":"EUVD-2026-42316","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27145","published":"2026-06-02","fixed":"1.26.4","kev":false,"link":{"from":"CVE-2026-27145","to":"CVE-2026-39822","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.25.11","toFixed":"1.25.12","daysApart":36}]}},{"cve":"CVE-2026-42504","published":"2026-06-02","fixed":"1.26.4","kev":false},{"cve":"CVE-2026-42507","published":"2026-06-02","fixed":"1.26.4","kev":false},{"cve":"CVE-2026-39822","published":"2026-07-08","fixed":"1.27.0-rc.2","kev":false},{"cve":"CVE-2026-42505","published":"2026-07-08","fixed":"1.27.0-rc.2","kev":false},{"cve":"CVE-2026-33818","published":"2026-08-13","fixed":"1.27.0-rc.3","kev":false},{"cve":"CVE-2026-39821","published":"2026-05-22","fixed":"1.27.0-rc.3","kev":false}],"package":"Go:stdlib"}}