# CVE-2026-39822: Root escape via symlink plus trailing slash in os

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-07-07T21:34:47.000Z
- Modified: 2026-11-23T21:12:28.520Z
- Also known as: 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
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- os: before 1.25.12; from 1.26.0-0 before 1.26.5; from 1.27.0-0 before 1.27.0-rc.2
- stdlib (Go): before 1.25.12; from 1.26.0-0 before 1.26.5; from 1.27.0-0 before 1.27.0-rc.2
- golang go: from 1.24.0 before 1.25.12; from 1.26.0 before 1.26.5; 1.27
- golang (Bitnami): before 1.25.12; from 1.26.0-0 before 1.26.5; from 1.27.0-0 before 1.27.0

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/issue/79005> (fix, issue-tracking, patch, report)
- <https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc> (advisory, mailing-list, patch, vendor-advisory, web)
- <https://go.dev/cl/797880> (fix, patch)
- <https://pkg.go.dev/vuln/GO-2026-4970> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39822> (web)

## Sources

- CVE List: [CVE-2026-39822](https://www.cve.org/CVERecord?id=CVE-2026-39822), CVE Terms of Use, modified 2026-07-08
- Go Vulnerability Database: [GO-2026-4970](https://pkg.go.dev/vuln/GO-2026-4970), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-39822](https://nvd.nist.gov/vuln/detail/CVE-2026-39822), Public domain, modified 2026-10-25
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-39822](https://osv.dev/vulnerability/BIT-GOLANG-2026-39822), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-39822 · Whole record: https://cve.day/CVE-2026-39822.json · Rebuilt by cve.day 2026-11-25T22:59:27.396Z
