Vulnerability Details : 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 category: Directory traversal
Products affected by CVE-2022-41722
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:a:golang:go:1.20.0:-:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-41722
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 21 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-41722
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2022-41722
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by:
- nvd@nist.gov (Primary)
- security@golang.org (Secondary)
References for CVE-2022-41722
-
https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E
[security] Go 1.20.1 and Go 1.19.6 are releasedMailing List;Vendor Advisory
-
https://go.dev/cl/468123
path/filepath: do not Clean("a/../c:/b") into c:\b on Windows (468123) · Gerrit Code ReviewIssue Tracking
-
https://pkg.go.dev/vuln/GO-2023-1568
GO-2023-1568 - Go PackagesVendor Advisory
-
https://go.dev/issue/57274
path/filepath: path traversal in filepath.Clean on Windows (CVE-2022-41722) · Issue #57274 · golang/go · GitHubIssue Tracking
Jump to