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)
EPSS: 0.017 (74.5th percentile) — read the EPSS interpretation.
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.
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
- security@golang.org (Issue Tracking)
- security@golang.org (Issue Tracking)
- security@golang.org (Mailing List, Vendor Advisory)
- security@golang.org (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.