GO-2026-4403
Improper access to parent directory of root in os
At a glance
- Published
- Updated
- CVE
- CVE-2025-22873
- Aliases
- BIT-golang-2025-22873
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 packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.23.9, introduced 1.24.0-0, fixed 1.24.3 |
References
- https://go.dev/cl/670036 FIX
- https://go.dev/issue/73555 REPORT
- https://groups.google.com/g/golang-announce/c/UZoIkUT367A/m/5WDxKizJAQAJ WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |