CVE-2025-22873
Unknown Unknown - Not Provided

Directory Traversal in Go os.Root Allows Parent Directory Access

Vulnerability report for CVE-2025-22873, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-02-04

Last updated on: 2026-02-10

Assigner: Go Project

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-02-04
Last Modified
2026-02-10
Generated
2026-07-06
AI Q&A
2026-02-05
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
golang go to 1.23.9 (exc)
golang go From 1.24.0 (inc) to 1.24.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-23 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability allows improper access to the parent directory of an os.Root by opening a filename that ends with "../". For example, using Root.Open("../") would open the parent directory of the Root directory. However, this escape only permits opening the immediate parent directory itself, not any higher-level ancestor directories or files contained within the parent directory.

Impact Analysis

The vulnerability could allow an attacker or unauthorized user to access the parent directory of a restricted root directory, potentially exposing directory contents that were intended to be protected. Although the access is limited to the immediate parent directory and does not extend to ancestors or files within the parent, this could still lead to information disclosure or unauthorized directory traversal.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

I don't know

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-22873. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart