Path Traversal in Golang Go
CVE-2022-41722
- CVSS v3
- 7.5 High
- Public exploits
- None known
- EPSS
- 0.017 · 77.3th percentile
- Published
- 2023-02-28
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.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- None
I:N - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.017, 77.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go — versions 1.20.0
- Go Standard Library Path/filepath — versions 0, 1.20.0-0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (8-cm/kube-dump, drewtwitchell/scancompare, h4ckm1n-dev/report-test, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
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)