{"id":"CVE-2026-39822","aliases":["CVE-2026-39822","GO-2026-4970","BIT-GOLANG-2026-39822"],"related":["RHSA-2026:36477","RHSA-2026:36510","RHSA-2026:37435","RHSA-2026:37436","RHSA-2026:38493","RHSA-2026:38494","RHSA-2026:38495","RHSA-2026:38878","RHSA-2026:38995","RHSA-2026:49702","RHSA-2026:49712","RHSA-2026:57361","RHSA-2026:57649","RHSA-2026:61253","RHSA-2026:66350","RHSA-2026:66375"],"kind":"vulnerability","state":"published","title":"Root escape via symlink plus trailing slash in os","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En sistemas Unix, abrir un archivo en un os.Root sigue incorrectamente los enlaces simbólicos a ubicaciones fuera del Root cuando el componente final de una ruta es un enlace simbólico y la ruta termina en /. Por ejemplo, ’root.Open(“symlink/”)’ abrirá “symlink” incluso cuando “symlink” es un enlace simbólico que apunta fuera de la raíz.","source":"nvd"}],"published":"2026-07-07T21:34:47.000Z","modified":"2026-11-23T21:12:28.520Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-61"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.25.12","status":"affected"},{"type":"semver","introduced":"1.26.0-0","fixed":"1.26.5","status":"affected"},{"type":"semver","introduced":"1.27.0-0","fixed":"1.27.0-rc.2","status":"affected"}],"vendor":"Go standard library","product":"os","package":"os","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.12"},{"type":"semver","introduced":"1.26.0-0","status":"affected","fixed":"1.26.5"},{"type":"semver","introduced":"1.27.0-0","status":"affected","fixed":"1.27.0-rc.2"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","introduced":"1.24.0","fixed":"1.25.12"},{"status":"affected","introduced":"1.26.0","fixed":"1.26.5"},{"status":"affected","version":"1.27"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.12"},{"type":"semver","introduced":"1.26.0-0","status":"affected","fixed":"1.26.5"},{"type":"semver","introduced":"1.27.0-0","status":"affected","fixed":"1.27.0"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/issue/79005","tags":["fix","issue-tracking","patch","report"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc","tags":["advisory","mailing-list","patch","vendor-advisory","web"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/cl/797880","tags":["fix","patch"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2026-4970","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822","tags":["web"],"sources":["bitnami"]}],"credits":["Mundur (https://github.com/M0nd0R)"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-08T18:06:16.360Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39822","url":"https://www.cve.org/CVERecord?id=CVE-2026-39822","licence":"CVE Terms of Use","modified":"2026-07-08T19:39:17.341Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4970","url":"https://pkg.go.dev/vuln/GO-2026-4970","licence":"CC-BY-4.0","modified":"2026-11-23T21:12:28.520Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39822","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39822","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2026-39822","url":"https://osv.dev/vulnerability/BIT-GOLANG-2026-39822","licence":"Apache-2.0","modified":"2026-09-08T08:45:13.550Z"}],"updatedAt":"2026-11-25T22:59:27.396Z","epss":{"score":0.00224,"percentile":0.13907,"date":"2026-12-01T12:00:22.000Z"}}