Path Traversal in Golang Go
CVE-2022-41722
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.017 (76.1th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 76th percentile — 76.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.017 · newest: 0.017 · change: 0.000
Affected products
- Golang Go — versions 1.20.0
- Go Standard Library Path/filepath — versions 0, 1.20.0-0
- Microsoft Windows
Weakness classification (CWE)
Public proof-of-concept exploits
References
- go.dev/issue/57274 (Issue Tracking)
- go.dev/cl/468123 (Issue Tracking)
- groups.google.com/g/golang-announce/c/V0aBFqaFs_E (Mailing List, Vendor Advisory)
- pkg.go.dev/vuln/GO-2023-1568 (Vendor Advisory)
Frequently asked questions
- What is CVE-2022-41722?
- CVE-2022-41722 is a high-severity vulnerability in Golang Go, classified under Path Traversal. CVSS score: 7.5/10. Published 2023-02-28.
- How severe is CVE-2022-41722?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2022-41722 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.