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.
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.002, 14.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library OS — versions 0, 1.24.0-0
Weakness classification (CWE)
References
- go.dev/cl/670036 (Product, Patch)
- go.dev/issue/73555 (Issue Tracking, Vendor Advisory)
- groups.google.com/g/golang-announce/c/UZoIkUT367A/m/5WDxKizJAQAJ (Mailing List, Release Notes)
- pkg.go.dev/vuln/GO-2026-4403 (Issue Tracking, Vendor Advisory)
- www.openwall.com/lists/oss-security/2025/05/06/2 (Mailing List, Third Party Advisory)