Vulnerability · Published Sep 13, 2022 · Assigned by Go
CVE-2022-32190Failure to strip relative path components in net/url
High 7.5
In plain English
A high-severity security flaw in net/url from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.2%top 17.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | go | 1.19.1-r0 | ALPINE-CVE-2022-32190 |
| Alpine:v3.21 | go | 1.19.1-r0 | ALPINE-CVE-2022-32190 |
| Alpine:v3.22 | go | 1.19.1-r0 | ALPINE-CVE-2022-32190 |
| Alpine:v3.23 | go | 1.19.1-r0 | ALPINE-CVE-2022-32190 |
| Alpine:v3.24 | go | 1.19.1-r0 | ALPINE-CVE-2022-32190 |
| Debian:12 | golang-1.19 | 1.19.1-1 | DEBIAN-CVE-2022-32190 |
| Go | stdlib | 1.19.1 | GO-2022-0988 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | net/url | 1.19.0-0 – before 1.19.1 |