Vulnerability · Published Feb 4, 2026 · Assigned by Go
CVE-2025-22873Improper access to parent directory of root in os
Low 3.8
In plain English
A low-severity security flaw in os from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)3.8Low
Exploit odds (30 days)0.2%top 85.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | go | 1.23.9-r0 | ALPINE-CVE-2025-22873 |
| Alpine:v3.22 | go | 1.24.3-r0 | ALPINE-CVE-2025-22873 |
| Alpine:v3.23 | go | 1.24.3-r0 | ALPINE-CVE-2025-22873 |
| Alpine:v3.24 | go | 1.24.3-r0 | ALPINE-CVE-2025-22873 |
| Debian:13 | golang-1.24 | 1.24.4-1 | DEBIAN-CVE-2025-22873 |
| Go | stdlib | 1.23.9, 1.24.3 | GO-2026-4403 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22873 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22873 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22873 |
| Ubuntu:26.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22873 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | os | 0 – before 1.23.91.24.0-0 – before 1.24.3 |
Weakness: CWE-23 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N