CVEvulnerability
CVE-2022-32190
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-09-13
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
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 configurations
• golang go 1.19.0
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://go.dev/cl/423514 Patch, Release Notes
- https://go.dev/issue/54385 Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s Mailing List, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0988 Issue Tracking, Patch, Vendor Advisory
- https://go.dev/cl/423514 Patch, Release Notes
- https://go.dev/issue/54385 Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s Mailing List, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0988 Issue Tracking, Patch, Vendor Advisory