cve.bz

CVE-2025-22873 golang go: Relative Path Traversal

3.8 lowEPSS 0.2%Fix available

Low (3.8) in golang go. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.23.9, 1.24.3.

On this page
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.

Severity

CVSS 3.1

3.8 low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-02-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-23 Relative Path Traversal
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-22873 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22873?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22873?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22873 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library osbefore 1.23.9
Go standard library osfrom 1.24.0-0 before 1.24.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-4403Gostdlib<1.23.9
>=1.24.0-0 <1.24.3
1.23.9, 1.24.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13golang-1.241.24.4-1DEBIAN-CVE-2025-22873
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 1 moregolang-1.24no fix listedUBUNTU-CVE-2025-22873
Red Hathummingbird:1golang1.25, golang1.25-bin, golang1.25-src and 4 more0:1.25.9-1.hum1RHSA-2026:7385
Red Hathummingbird:1golang1.26, golang1.26-bin, golang1.26-src and 4 more0:1.26.2-1.hum1RHSA-2026:7291
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morego1.241.24.4-150000.1.26.1SUSE-SU-2025:01846-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 10 morego1.241.24.3-150000.1.23.1SUSE-SU-2025:1551-1
SUSELinux Enterprise Module for Development Tools 15 SP7go1.241.24.3-150000.1.23.1SUSE-SU-2025:01551-1
openSUSELeap 15.6go1.241.24.3-150000.1.23.1SUSE-SU-2025:1551-1
openSUSELeap 15.6go1.241.24.4-150000.1.26.1SUSE-SU-2025:01846-1
openSUSELeap 15.6govulncheck-vulndb0.0.20260205T172317-150000.1.146.1SUSE-SU-2026:0403-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgo1.241.24.3-1.1openSUSE-SU-2025:15058-1
Alpinev3.21go1.23.9-r0ALPINE-CVE-2025-22873
Alpinev3.22, v3.23, v3.24go1.24.3-r0ALPINE-CVE-2025-22873
Alpaquitastreamgo1.24.3-r0BELL-CVE-2025-22873
BellSoft Hardened Containersstreamgo1.24.3-r0BELL-CVE-2025-22873

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security classified this issue as Moderate.

The flaw exists in a local filesystem abstraction within the Go standard library, it can also be exploited remotely in applications that accept attacker-controlled path input over a network and pass it to Root.Open without proper validation. The attack complexity is low, as exploitation requires only appending "../" to the supplied path. However, the impact is limited: the flaw permits opening only the immediate parent directory, not arbitrary filesystem locations or files contained within that directory. There is no direct impact on file integrity or application availability. These constraints limit the practical exposure of the issue while still represents a boundary bypass and may expose unintended filesystem metadata. The issue does not permit traversal beyond the parent directory, modification of files, or broader system compromise, thereby constraining its overall impact.

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesgolang1-26-main-1.26.2-1.hum1Fixed 2026-04-09RHSA-2026:7291
Red Hat Hardened Imagesgolang1-25-main-1.25.9-1.hum1Fixed 2026-04-10RHSA-2026:7385
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel9Fix deferred
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Fix deferred
Compliance Operatorcompliance/openshift-compliance-operator-bundleFix deferred
Confidential Compute Attestationbuild-of-trustee/trustee-rhel9-operatorFix deferred
Confidential Compute Attestationopenshift-sandboxed-containers/osc-monitor-rhel9Fix deferred
Cryostat 4cryostat/cryostat-storage-rhel9Fix deferred
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel9Fix deferred
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorFix deferred
ExternalDNS Operatoredo/external-dns-rhel8Fix deferred
ExternalDNS Operatoredo/external-dns-rhel9Fix deferred
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/external-secrets-rhel9Fix deferred
Fence Agents Remediation Operatorworkload-availability/fence-agents-remediation-rhel8-operatorFix deferred
File Integrity Operatorcompliance/openshift-compliance-operator-bundleFix deferred
Gatekeeper 3gatekeeper/gatekeeper-rhel9-operatorFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Fix deferred
Logical Volume Manager Storagelvms4/lvms-rhel9-operatorFix deferred
142 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-22873.

Attack patterns (CAPEC)

  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-139 Relative Path Traversal Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON