CVE-2022-41722
A path traversal vulnerability exists in filepath.Clean on Windows.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.68%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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".
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 1.68% probability · 76th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- golang/go
- Source
- security@golang.org
References
- https://go.dev/cl/468123Issue Tracking
- https://go.dev/issue/57274Issue Tracking
- https://groups.google.com/g/golang-announce/c/V0aBFqaFs_EMailing List, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2023-1568Vendor Advisory
- https://go.dev/cl/468123Issue Tracking
- https://go.dev/issue/57274Issue Tracking
- https://groups.google.com/g/golang-announce/c/V0aBFqaFs_EMailing List, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2023-1568Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.