CVE-2022-32190
published 2022-09-13CVE-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…
PriorityP338high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
1.68%
74.0th percentile
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
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-1.15 | < golang-1.19 1.19.1-1 (bookworm) | golang-1.19 1.19.1-1 (bookworm) |
| debian | golang-1.19 | < golang-1.19 1.19.1-1 (bookworm) | golang-1.19 1.19.1-1 (bookworm) |
| go_standard_library | net_url | >= 1.19.0-0 < 1.19.1 | 1.19.1 |
| golang | go | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
golang: net/url: JoinPath does not strip relative path components in all circumstances
vendor_redhat·2022-09-06·CVSS 7.5
CVE-2022-32190 [HIGH] CWE-22 golang: net/url: JoinPath does not strip relative path components in all circumstances
golang: net/url: JoinPath does not strip relative path components in all circumstances
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.
A flaw was found in the golang package. The JoinPath doesn't remove the ../ path components appended to a domain that is not terminated by a slash, possibly leading to a directory traversal attack.
Statement: The vulnerable functions, JoinPath and URL.JoinPath was introduced in upstream go1.19, whereas, RHEL ships go1.17 and go1.18 versions, which does not contain the vulnerable code. Hence, packages shipped with RHEL-8, RHEL-9 are not
Debian
CVE-2022-32190: golang-1.15 - JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative...
vendor_debian·2022·CVSS 7.5
CVE-2022-32190 [HIGH] CVE-2022-32190: golang-1.15 - JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative...
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.
Scope: local
bullseye: resolved
GHSA
GHSA-q856-gh5w-3vwg: JoinPath and URL
ghsa_unreviewed·2022-09-14
CVE-2022-32190 [CRITICAL] CWE-22 GHSA-q856-gh5w-3vwg: JoinPath and URL
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.
OSV
CVE-2022-32190: JoinPath and URL
osv·2022-09-13·CVSS 7.5
CVE-2022-32190 [HIGH] CVE-2022-32190: JoinPath and URL
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.
OSV
Failure to strip relative path components in net/url
osv·2022-09-12
CVE-2022-32190 Failure to strip relative path components in net/url
Failure to strip relative path components in net/url
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2022-09-13
Published