Skip to content
Fencer Vulns
low 3.8

CVE-2025-22873 json

Improper access to parent directory of root in os

published 2026-02-04 9 mo ago modified 2026-09-08 2 mo ago also BIT-golang-2025-22873 , EUVD-2025-206863 , GO-2026-4403

cvss
3.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 14%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami golang 1.23.9, 1.24.3
  • go stdlib 1.23.9, 1.24.3
  • Go standard library os 1.23.9, 1.24.3
  • golang-1.24 Debian 13 1.24.4-1

debian advisories DEBIAN-CVE-2025-22873

  • golang1.25 hummingbird 1 1.25.9-1.hum1
  • golang1.25-bin hummingbird 1 1.25.9-1.hum1
  • golang1.25-src hummingbird 1 1.25.9-1.hum1
  • golang1.25-misc hummingbird 1 1.25.9-1.hum1
  • golang1.25-tests hummingbird 1 1.25.9-1.hum1
  • golang1.25-shared hummingbird 1 1.25.9-1.hum1
  • golang1.26 hummingbird 1 1.26.2-1.hum1
  • golang1.26-bin hummingbird 1 1.26.2-1.hum1

red hat advisories RHSA-2026:7385RHSA-2026:7291

  • govulncheck-vulndb openSUSE Leap 15.6 0.0.20260205T172317-150000.1.146.1
  • go1.24 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 1.24.4-150000.1.26.1
  • go1.24 SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, SLE High Performance Computing 15 SP5-ESPOS +12 more 1.24.3-150000.1.23.1

suse advisories SUSE-SU-2026:0403-1SUSE-SU-2025:01846-1SUSE-SU-2025:01551-1SUSE-SU-2025:1551-1

  • govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
  • go1.24 openSUSE Tumbleweed 1.24.3-1.1

opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2025:15058-1

  • go Alpine 3.21 1.23.9-r0
  • go Alpine 3.24, Alpine 3.23, Alpine 3.22 1.24.3-r0

alpine advisories ALPINE-CVE-2025-22873

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • go Arch Linux 2:1.24.3-1

arch linux advisories AVG-2878

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-22873 updated cvss 5.3

os: os: Information disclosure via path traversal using specially crafted filenames

  • Red Hat Assisted Installer for Red Hat OpenShift Container Platform 2 rhai/assisted-installer-rhel9 Red Hat Builds for Red Hat OpenShift openshift-builds/openshift-builds-waiters-rhel9 Red Hat cert-manager Operator for Red Hat OpenShift cert-manager/jetstack-cert-manager-rhel9 Red Hat Compliance Operator compliance/openshift-compliance-operator-bundle Red Hat Confidential Compute Attestation build-of-trustee/trustee-rhel9-operator, openshift-sandboxed-containers/osc-monitor-rhel9 Red Hat Cryostat 4 cryostat/cryostat-storage-rhel9
    +34 more products
    Red Hat Custom Metric Autoscaler operator for Red Hat Openshift custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9 Red Hat Deployment Validation Operator dvo/deployment-validation-rhel8-operator Red Hat External Secrets Operator for Red Hat OpenShift external-secrets-operator/external-secrets-rhel9 Red Hat ExternalDNS Operator edo/external-dns-rhel8, edo/external-dns-rhel9 Red Hat Fence Agents Remediation Operator workload-availability/fence-agents-remediation-rhel8-operator Red Hat File Integrity Operator compliance/openshift-compliance-operator-bundle Red Hat Gatekeeper 3 gatekeeper/gatekeeper-rhel9-operator Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/eventrouter-rhel9, openshift-logging/logging-loki-rhel9 Red Hat Logical Volume Manager Storage lvms4/topolvm-rhel8, lvms4/topolvm-rhel9, lvms4/lvms-rhel9-operator Red Hat Machine Deletion Remediation Operator workload-availability/machine-deletion-remediation-rhel8-operator Red Hat Migration Toolkit for Applications 8 mta/mta-cli-rhel9 Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-registry-rhel8 Red Hat mirror registry for Red Hat OpenShift openshift/mirror-registry-rhel8 Red Hat mirror registry for Red Hat OpenShift 2 openshift/mirror-registry-rhel8 Red Hat Multiarch Tuning Operator multiarch-tuning/multiarch-tuning-rhel9-operator Red Hat Multicluster Engine for Kubernetes multicluster-engine/discovery-rhel9 Red Hat Multicluster Global Hub multicluster-globalhub/multicluster-globalhub-agent-rhel9 Red Hat Network Observability Operator network-observability/network-observability-cli-rhel9 Red Hat Node HealthCheck Operator workload-availability/node-healthcheck-rhel8-operator Red Hat OpenShift API for Data Protection oadp/oadp-velero-rhel9 Red Hat OpenShift Developer Tools and Services helm, openshift4/ose-jenkins, ocp-tools-4/jenkins-rhel8, ocp-tools-4/jenkins-rhel9, ocp-tools-4/jenkins-agent-base-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-rhel9-operator Red Hat OpenShift Pipelines openshift-pipelines-client Red Hat OpenShift Serverless kn-workflow-plugin, openshift-serverless-clients, openshift-serverless-1/kn-plugin-event-sender-rhel9 Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8, openshift4/ose-docker-builder-rhel9 Red Hat OpenShift Service Mesh 3 openshift-service-mesh/kiali-rhel9, openshift4/ose-docker-builder-rhel9 Red Hat OpenShift Source-to-Image (S2I) source-to-image/source-to-image-rhel8 Red Hat Power monitoring for Red Hat OpenShift openshift-power-monitoring/kepler-rhel9 Red Hat 3scale API Management Platform 2 3scale-amp26/operator, 3scale-amp26/3scale-operator, 3scale-amp2/3scale-rhel7-operator, 3scale-amp2/3scale-rhel9-operator Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/subctl-rhel9 Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8 Red Hat AMQ Clients qpid-proton, python3-qpid-proton Red Hat Ansible Automation Platform 2 automation-gateway-proxy, automation-gateway-proxy-openssl30, automation-gateway-proxy-openssl32, ansible-automation-platform-26/receptor-rhel9, ansible-automation-platform/platform-operator-bundle Red Hat build of Apache Camel - HawtIO 4 hawtio-operator-container
    affected: workaround, no fix available “No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.”

36 more affected, 1 more fixed in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
9 mo ago

Exploit prediction

0.23% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 3.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
CNA 3.1 3.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
OSV 3.1 3.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami golang
<1.23.9
>=1.24.0-0, <1.24.3
1.23.9
1.24.3
go stdlib
<1.23.9
>=1.24.0-0, <1.24.3
1.23.9
1.24.3

Affected products

  • Go standard library os

Classification

Weakness
  • CWE-23 Relative Path Traversal

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.