| Name | CVE-2026-39822 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| golang-1.15 (PTS) | bullseye | 1.15.15-1~deb11u4 | fixed |
| golang-1.19 (PTS) | bookworm | 1.19.8-2 | vulnerable |
| golang-1.24 (PTS) | trixie | 1.24.4-1 | vulnerable |
| golang-1.25 (PTS) | forky, sid | 1.25.12-1 | fixed |
| golang-1.26 (PTS) | forky, sid | 1.26.5-1 | fixed |
| golang-1.27 (PTS) | forky, sid | 1.27~rc2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| golang-1.15 | source | (unstable) | (not affected) | |||
| golang-1.19 | source | (unstable) | (unfixed) | |||
| golang-1.24 | source | (unstable) | (unfixed) | |||
| golang-1.25 | source | (unstable) | 1.25.12-1 | |||
| golang-1.26 | source | (unstable) | 1.26.5-1 | |||
| golang-1.27 | source | (unstable) | 1.27~rc2-1 |
[trixie] - golang-1.24 <no-dsa> (Minor issue)
- golang-1.15 <not-affected> (Vulnerable code introduced later)
golang-1.15: os.Root API introduced in Go 1.24 (go.dev/doc/go1.24); absent in 1.15
https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc
https://github.com/golang/go/issues/79005
Fixed by: https://github.com/golang/go/commit/f9ef7f55988f03afeb3b8354367d0fa8d053683d (go1.26.5)
Fixed by: https://github.com/golang/go/commit/c94048f5638bbcaa22102bade5e9774e0d485315 (go1.25.12)