CVEfocus › CVE database › CVE-2025-22873

CVE-2025-22873Improper access to parent directory of root in os

CVSS 3.8 LowEPSS 0.2% (higher than 7% of CVEs)Published 2026-02-04Updated 2026-02-05Assigner: Go

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

CWE-23

What to do

Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
44Fix pending
3Under investigation
20Will not fix
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Not affected
vulnerable_code_not_present
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2025-22873
Ubuntu 25.10golang-1.23Not affected
vulnerable_code_not_present
Ubuntu 25.10golang-1.24Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-22873
Ubuntu 24.04golang-1.23Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2025-22873
Ubuntu 22.04golang-1.23Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2025-22873
Debian 13golang-1.24Fixed1.24.4-1DEBIAN-CVE-2025-22873
Red Hat Enterprise Linux 10buildahFix pending
Fix deferred
Red Hat Enterprise Linux 10buildah-testsFix pending
Fix deferred
Red Hat Enterprise Linux 10conmonFix pending
Fix deferred
Red Hat Enterprise Linux 10go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 10golangFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 10podmanFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-testsFix pending
Fix deferred
Red Hat Enterprise Linux 10python3-awscrtFix pending
Fix deferred
Red Hat Enterprise Linux 10skopeoFix pending
Fix deferred
Red Hat Enterprise Linux 10skopeo-testsFix pending
Fix deferred
Red Hat Enterprise Linux 10trustee-guest-componentsFix pending
Fix deferred
Red Hat Enterprise Linux 9buildahFix pending
Fix deferred
Red Hat Enterprise Linux 9buildah-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9conmonWill not fix
Out of support scope
Red Hat Enterprise Linux 9containernetworking-pluginsFix pending
Fix deferred
Red Hat Enterprise Linux 9go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 9golangFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-github-cpuguy83-md2manFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9oci-seccomp-bpf-hookFix pending
Fix deferred
Red Hat Enterprise Linux 9podmanFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-catatonitFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-gvproxyFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-pluginsFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9python3-awscrtFix pending
Fix deferred
Red Hat Enterprise Linux 9runcFix pending
Fix deferred
Red Hat Enterprise Linux 9skopeoFix pending
Fix deferred
Red Hat Enterprise Linux 9skopeo-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9trustee-guest-componentsFix pending
Fix deferred
Red Hat Enterprise Linux 8conmonWill not fix
Out of support scope
Red Hat Enterprise Linux 8containernetworking-pluginsWill not fix
Out of support scope
Red Hat Enterprise Linux 8containers-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 8go-toolsetWill not fix
Out of support scope
Red Hat Enterprise Linux 8golangWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-binWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-miscWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-raceWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-srcWill not fix
Out of support scope
Red Hat Enterprise Linux 8golang-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookWill not fix
Out of support scope
Red Hat Enterprise Linux 8rhcWill not fix
Out of support scope
Red Hat Enterprise Linux 8runcWill not fix
Out of support scope
Red Hat Enterprise Linux 8skopeoWill not fix
Out of support scope
Red Hat Enterprise Linux 8skopeo-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rhcWill not fix
Out of support scope
Red Hat Enterprise Linux 7rhc-worker-scriptWill not fix
Out of support scope
Alpine Linux 3.24goFixed1.24.3-r0ALPINE-CVE-2025-22873
Alpine Linux 3.23goFixed1.24.3-r0ALPINE-CVE-2025-22873
Alpine Linux 3.22goFixed1.24.3-r0ALPINE-CVE-2025-22873
Alpine Linux 3.21goFixed1.23.9-r0ALPINE-CVE-2025-22873
Go librarystdlibFixed1.23.9GO-2026-4403

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.