CVE-2022-32190
JSON

7.5high

Failure to strip relative path components in net/url

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
2.43% (higher than 84% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2022-0988BIT-GOLANG-2022-32190

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

Product or packageVersionsReported by
net/urlfrom 1.19.0-0 before 1.19.1CVE List
stdlib (Go)from 1.19.0-0 before 1.19.1Go Vulnerability Database
golang go1.19.0NVD
golang (Bitnami)from 1.19.0-0 before 1.19.1Bitnami Vulnerability Database

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

NVD (es)

JoinPath y URL.JoinPath no eliminan los elementos de ruta ../ anexados a una ruta relativa. Por ejemplo, JoinPath("https://go.dev", "../go") devuelve la URL "https://go.dev/../go", a pesar de que la documentación de JoinPath indica que los elementos de ruta ../ son eliminados del resultado

References

https://groups.google.com/g/golang-announce/c/x49AQzIVX-sadvisory, mailing-list, third-party-advisory, web
https://go.dev/issue/54385advisory, issue-tracking, patch, report, vendor-advisory
https://go.dev/cl/423514fix, patch, release-notes
https://pkg.go.dev/vuln/GO-2022-0988advisory, issue-tracking, patch, vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2022-32190web

Related

Sources

SourceRecordLicence
CVE ListCVE-2022-32190 changed 2024-08-03CVE Terms of Use
Go Vulnerability DatabaseGO-2022-0988 changed 2026-07-15CC-BY-4.0
NVDCVE-2022-32190 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2022-32190 changed 2026-09-08Apache-2.0