{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-39822","id":"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 /. For example, 'root.Open(\"symlink/\")' will open \"symlink\" even when \"symlink\" is a symbolic link pointing outside of the root.","descriptionLong":"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.","published":"2026-07-08T15:46:27.199Z","updated":"2026-10-28T02:31:07.006388921Z","reserved":"2026-04-07T18:13:03.527Z","status":"Analyzed","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Go standard library os"],"affectedProducts":[{"vendor":"Go standard library","product":"os","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.25.12","status":"affected","versionType":"semver"},{"version":"1.26.0-0","lessThan":"1.26.5","status":"affected","versionType":"semver"},{"version":"1.27.0-0","lessThan":"1.27.0-rc.2","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"stdlib","purl":"pkg:golang/stdlib","ranges":["<1.25.12",">=1.26.0-0 <1.26.5",">=1.27.0-0 <1.27.0-rc.2"],"fixed":["1.25.12","1.26.5","1.27.0-rc.2"],"advisory":"GO-2026-4970"}],"cwes":["CWE-61"],"aliases":["BIT-golang-2026-39822","GO-2026-4970"],"references":[{"url":"https://go.dev/issue/79005","tags":["Issue Tracking","Patch","web","report"]},{"url":"https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc","tags":["Mailing List","Patch","Vendor Advisory","web"]},{"url":"https://go.dev/cl/797880","tags":["Patch","web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2026-4970","tags":["Vendor Advisory","web"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39822.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00232,"epssPercentile":0.14291,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-39822","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-39822","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-39822","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}