BreachSpiderVerified, not vibes

CVE-2025-22873 in Golang Go

Low 3.8

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.13.8
EPSS0.2%
EPSS percentile7th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Golang Go < 1.23.9 ≥ 1.24.0, < 1.24.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-22873
BreachSpider IDBS-2026-GLOBAL-242870-L
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Published2026-02-04
Last modified2026-11-19
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-23: CWE-23

Related attack patterns (CAPEC)

CAPEC-76 Manipulating Web Input to File System Calls via CWE-23

CAPEC-139 Relative Path Traversal via CWE-23

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2025-22873 allows unauthorized access to the parent directory of an os.Root by using a filename ending in "../". This vulnerability could lead to sensitive data exposure.

An attacker can exploit this vulnerability by using a filename ending in "../" to access the parent directory of an os.Root. The escape only permits opening the parent directory itself, not ancestors of the parent or files contained within the parent.

Questions

What is CVE-2025-22873?

CVE-2025-22873 allows unauthorized access to the parent directory of an os.Root by using a filename ending in "../". This vulnerability could lead to sensitive data exposure.

What is the CVSS score for CVE-2025-22873?

CVE-2025-22873 has CVSS 3.8 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N. EPSS: 0.2%.

Is CVE-2025-22873 actively exploited?

No confirmed active exploitation of CVE-2025-22873 as of 2026-11-20.

How do I remediate CVE-2025-22873?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2025-22873?

CVE-2025-22873 affects Golang Go.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Golang","product":"Go","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-19.