What’s Vulnerable › Vulnerabilities
CVE-2022-32190: Failure to strip relative path components in net/url
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-09-13 · updated 2026-06-17
- Weakness: CWE-22
Description
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.
Affected products
- Go: 1.19.0, 1.19.0-beta1, 1.19.0-rc1, 1.19.0-rc2
References
- https://go.dev/cl/423514
- https://go.dev/issue/54385
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s
- https://pkg.go.dev/vuln/GO-2022-0988
- https://go.dev/cl/423514
- https://go.dev/issue/54385
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s
- https://pkg.go.dev/vuln/GO-2022-0988
Get alerted when CVE-2022-32190 or the next vulnerability affects your stack