CVE-2025-22873Published Feb 4, 2026 · Feb 4Updated 6h ago
Improper access to parent directory of root in os
Go standard library os
Low3.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| stdlib Go |
|
|
Original 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.
From the CVE record · Go