Path Traversal in Golang Go
CVE-2025-22873
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.
EPSS: 0.002 (15.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 3.8 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N.
Affected products
- Golang Go
- Go Standard Library Os — versions 0, 1.24.0-0
Weakness classification (CWE)
References
- security@golang.org (Product, Patch)
- security@golang.org (Issue Tracking, Vendor Advisory)
- security@golang.org (Mailing List, Release Notes)
- security@golang.org (Issue Tracking, Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-22873?
- CVE-2025-22873 is a low-severity vulnerability in Golang Go, classified under Relative Path Traversal. CVSS score: 3.8/10. Published 2026-02-04.
- How severe is CVE-2025-22873?
- Low severity. CVSS v3 base score is 3.8 out of 10.