CVE-2026-39822

NameCVE-2026-39822
DescriptionOn 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-1.15 (PTS)bullseye1.15.15-1~deb11u4fixed
golang-1.19 (PTS)bookworm1.19.8-2vulnerable
golang-1.24 (PTS)trixie1.24.4-1vulnerable
golang-1.25 (PTS)forky, sid1.25.12-1fixed
golang-1.26 (PTS)forky, sid1.26.5-1fixed
golang-1.27 (PTS)forky, sid1.27~rc2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-1.15source(unstable)(not affected)
golang-1.19source(unstable)(unfixed)
golang-1.24source(unstable)(unfixed)
golang-1.25source(unstable)1.25.12-1
golang-1.26source(unstable)1.26.5-1
golang-1.27source(unstable)1.27~rc2-1

Notes

[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)

Search for package or bug name: Reporting problems