What’s Vulnerable › Vulnerabilities
CVE-2025-22873: Improper access to parent directory of root in os
- Severity: low (CVSS 3.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-02-04 · updated 2026-06-17
- Weakness: CWE-23
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.
Affected products
- Go: before 1.23.9; from 1.24.0 before 1.24.3 — fixed in 1.23.9, 1.24.3
How to fix
Upgrade to a fixed version: Go 1.23.9, 1.24.3. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/670036
- https://go.dev/issue/73555
- https://groups.google.com/g/golang-announce/c/UZoIkUT367A/m/5WDxKizJAQAJ
- https://pkg.go.dev/vuln/GO-2026-4403
- http://www.openwall.com/lists/oss-security/2025/05/06/2
Get alerted when CVE-2025-22873 or the next vulnerability affects your stack