Vulnerability Details : CVE-2022-29804
Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack.
Vulnerability category: Directory traversal
Products affected by CVE-2022-29804
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-29804
0.16%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 52 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-29804
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-29804
-
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:
- cve@mitre.org (Secondary)
- nvd@nist.gov (Primary)
References for CVE-2022-29804
-
https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
[security] Go 1.18.3 and Go 1.17.11 are releasedMailing List;Release Notes
-
https://go.dev/issue/52476
path/filepath: Clean(`.\c:`) returns `c:` on Windows · Issue #52476 · golang/go · GitHubPatch;Vendor Advisory
-
https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290
9cd1818a7d019c02fa4898b3e45a323e35033290 - go - Git at GoogleMailing List;Patch;Vendor Advisory
-
https://go.dev/cl/401595
path/filepath: do not remove prefix "." when following path contains ":". (I9eb72ac7) · Gerrit Code ReviewPatch;Vendor Advisory
-
https://pkg.go.dev/vuln/GO-2022-0533
GO-2022-0533 - Go PackagesPatch;Vendor Advisory
Jump to