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 package | Versions | Reported by |
|---|---|---|
| net/url | from 1.19.0-0 before 1.19.1 | CVE List |
| stdlib (Go) | from 1.19.0-0 before 1.19.1 | Go Vulnerability Database |
| golang go | 1.19.0 | NVD |
| golang (Bitnami) | from 1.19.0-0 before 1.19.1 | Bitnami Vulnerability Database |
All scores
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | high 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-s | advisory, mailing-list, third-party-advisory, web | |
| https://go.dev/issue/54385 | advisory, issue-tracking, patch, report, vendor-advisory | |
| https://go.dev/cl/423514 | fix, patch, release-notes | |
| https://pkg.go.dev/vuln/GO-2022-0988 | advisory, issue-tracking, patch, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-32190 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-32190 changed 2024-08-03 | CVE Terms of Use |
| Go Vulnerability Database | GO-2022-0988 changed 2026-07-15 | CC-BY-4.0 |
| NVD | CVE-2022-32190 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2022-32190 changed 2026-09-08 | Apache-2.0 |