CVE-2025-22873

NameCVE-2025-22873
DescriptionIt was possible to improperly access the parent directory of an os.Root by opening a filename ending in "../". For example, Root.Open("../") would open the parent directory of the Root. This escape only permits opening the parent directory itself, not ancestors of the parent or files contained within the parent.
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)
Debian Bugs1104816

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-2fixed
golang-1.24 (PTS)trixie1.24.4-1fixed
forky, sid1.24.13-2fixed

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)(not affected)
golang-1.23source(unstable)(not affected)
golang-1.24source(unstable)1.24.4-11104816

Notes

- golang-1.23 <not-affected> (Vulnerable code only present in 1.24.x releases)
- golang-1.19 <not-affected> (Vulnerable code only present in 1.24.x releases)
- golang-1.15 <not-affected> (Vulnerable code only present in 1.24.x releases)
https://groups.google.com/g/golang-announce/c/UZoIkUT367A/m/5WDxKizJAQAJ
https://github.com/golang/go/issues/73555
https://github.com/golang/go/commit/8947f3395eb24dce6a5749517c0b40204b585f0a (go1.24.3)

Search for package or bug name: Reporting problems