{"vuln_id":"CVE-2026-39822","aliases":[],"description":"Root escape via symlink plus trailing slash in os","published_at":"2026-07-07T21:34:47Z","modified_at":"2026-11-23T21:12:28.520518Z","first_seen_at":"2026-11-24T03:06:38.785905Z","severity":"high","severity_source":"nvd","cvss_score":7.8,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-61"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00232,"epss_percentile":0.14181,"nvd_status":"Analyzed","enriched_at":"2026-11-24T03:22:07.746482Z","links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822"},"matched_alias":null,"items":[{"id":17434,"source":{"id":"osv","name":"OSV.dev"},"title":"GO-2026-4970: Root escape via symlink plus trailing slash in os","summary":"Root escape via symlink plus trailing slash in os\n\nOn 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.\n\nAffected: Go:stdlib\n\nFixed in: 1.25.12, 1.26.5, 1.27.0-rc.2\n\nReferences:\nhttps://go.dev/issue/79005\nhttps://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc\nhttps://go.dev/cl/797880","url":"https://osv.dev/vulnerability/GO-2026-4970","published_at":"2026-07-07T21:34:47Z","updated_at":"2026-11-23T21:12:28.520518Z","fetched_at":"2026-11-24T03:06:38.634334Z","severity":"high","cvss_score":7.8,"epss":0.00232,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"google","product":"stdlib","vuln_id":"CVE-2026-39822","vuln_ids":["CVE-2026-39822","BIT-GOLANG-2026-39822","GO-2026-4970"],"tags":["osv","go","fix-available"],"cluster_id":15427,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/17434","html":"https://vulnwatch.ve1ve2.com/item/17434"}}]}