CVE-2025-22873 Details
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.
A directory traversal vulnerability has been identified in the Go programming language's os package, specifically in versions prior to 1.24.3. This vulnerability allows improper access to the parent directory of an os.Root by opening a filename that ends with '../'. For instance, using Root.Open('../') would access the parent directory. However, this escape only enables access to the immediate parent directory, not to its ancestors or any files within it. The issue was reported by Dan Sebastian Thrane of SDU eScience Center.
Users can upgrade to Go version 1.24.3 or 1.23.9, both of which include the necessary security fix. Instructions for downloading these versions are available on the Go website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/05/06/2 | CVE | Mailing ListThird Party Advisory |
| https://go.dev/cl/670036 | [email protected] | PatchProduct |
| https://go.dev/issue/73555 | [email protected] | Issue TrackingVendor Advisory |
| https://groups.google.com/g/golang-announce/c/UZoIkUT367A/m/5WDxKizJAQAJ | [email protected] | Mailing ListRelease Notes |
| https://pkg.go.dev/vuln/GO-2026-4403 | [email protected] | Issue TrackingVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-23 | Relative Path Traversal | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| golang go | >= 1.24.0, < 1.24.3 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 19, 2026 | Modified Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Feb 10, 2026 | Initial Analysis | [email protected] |
| Feb 5, 2026 | CVE Modified | CISA-ADP |
| Feb 4, 2026 | CVE Modified | CVE |
| Feb 4, 2026 | New CVE Received | [email protected] |