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

EcosystemPackageFixed inAdvisory
Alpine:v3.20go1.19.1-r0ALPINE-CVE-2022-32190
Alpine:v3.21go1.19.1-r0ALPINE-CVE-2022-32190
Alpine:v3.22go1.19.1-r0ALPINE-CVE-2022-32190
Alpine:v3.23go1.19.1-r0ALPINE-CVE-2022-32190
Alpine:v3.24go1.19.1-r0ALPINE-CVE-2022-32190
Debian:12golang-1.191.19.1-1DEBIAN-CVE-2022-32190
Gostdlib1.19.1GO-2022-0988

Affected products (as reported)

VendorProductVersions
Go standard library net/url 1.19.0-0 – before 1.19.1

References