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".
References (4)
Core 4
Core References
Issue Tracking
https://go.dev/cl/468123
Issue Tracking
https://go.dev/issue/57274
Mailing List, Vendor Advisory
https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E
Vendor Advisory
https://pkg.go.dev/vuln/GO-2023-1568
Scores
CVSS v3
7.5
EPSS
0.0033
EPSS Percentile
56.2%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (2)
golang/go
1.20.0
golang/go
< 1.19.6
Published
Feb 28, 2023
Tracked Since
Feb 18, 2026