Directory traversal via absolute-path normalization
Published Feb 28, 2023 · Updated Mar 7, 2025
Path traversal in Go standard library path/filepath before 1.19.6 and 1.20.0 allows attackers to produce absolute Windows paths via crafted input. filepath.Clean collapses an invalid relative path such as a/../c:/b into the valid absolute path c:\b instead of retaining a relative prefix. Impact requires a consuming program to accept attacker-controlled paths and use the cleaned result for a filesystem operation; the flaw alone does not read or write files.
Summary
What happened
Path traversal in Go standard library path/filepath before 1.19.6 and 1.20.0 allows attackers to produce absolute Windows paths via crafted input. filepath.Clean collapses an invalid relative path such as a/../c:/b into the valid absolute path c:\b instead of retaining a relative prefix. Impact requires a consuming program to accept attacker-controlled paths and use the cleaned result for a filesystem operation; the flaw alone does not read or write files.
The record
- CVE
- CVE-2022-41722
- Published
- Feb 28, 2023
- Updated
- Mar 7, 2025
- Vendor
- Go standard library
- Product
- path/filepath
- Classifications
- CWE-22
- Attack vector
- Unavailable
- Privileges
- Unavailable
Timeline
How it unfolded
- Feb 28, 2023CVE publishedPublication date reported by the CVE source.
- Mar 7, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <1.19.6
- Affected versionversion=1.20.0-0 <1.20.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
No CVSS assessment is available in this record.
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo