CVE-2025-22873
Unknown
Unknown - Not Provided
Directory Traversal in Go os.Root Allows Parent Directory Access
Publication date: 2026-02-04
Last updated on: 2026-02-10
Assigner: Go Project
Description
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
Affected Vendors & Products
| 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 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. |