Vulnerability Details : CVE-2022-32190
JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.
Vulnerability category: Directory traversal
Products affected by CVE-2022-32190
- cpe:2.3:a:golang:go:1.19.0:beta1:*:*:*:*:*:*
- cpe:2.3:a:golang:go:1.19.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:golang:go:1.19.0:rc2:*:*:*:*:*:*
- cpe:2.3:a:golang:go:1.19.0:-:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-32190
0.17%
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-32190
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-32190
-
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-32190
-
https://groups.google.com/g/golang-announce/c/x49AQzIVX-s
[security] Go 1.19.1 and Go 1.18.6 are releasedMailing List;Third Party Advisory
-
https://pkg.go.dev/vuln/GO-2022-0988
GO-2022-0988 - Go PackagesIssue Tracking;Patch;Vendor Advisory
-
https://go.dev/cl/423514
net/url: consistently remove ../ elements in JoinPath (I6d22cd16) · Gerrit Code ReviewPatch;Release Notes
-
https://go.dev/issue/54385
net/url: JoinPath doesn't strip relative path components in all circumstances · Issue #54385 · golang/go · GitHubIssue Tracking;Patch;Vendor Advisory
Jump to