CVE-2025-22873

Improper access to parent directory of root in os

Published Feb 4, 2026 CVSS 3.1 · 3.8 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Golang
Golang go
CPEs cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Vendors & Products Golang
Golang go
Type Values Removed Values Added
Weaknesses CWE-23
Metrics cvssV3_1

{'score': 3.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library os
Vendors & Products Go Standard Library
Go Standard Library os
Type Values Removed Values Added
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.
Title Improper access to parent directory of root in os
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Feb 5, 2026, 3:03 PM
Reserved
Jan 8, 2025, 7:11 PM
Status
Analyzed
Published
Feb 4, 2026, 11:15 PM
Modified
Jun 17, 2026, 8:50 AM
Severity
Moderate
Public date
Feb 4, 2026, 11:05 PM