CVE-2022-32190
N/A
N/A
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Go standard library | net/url | 1.19.0-0 < 1.19.1 | affected |
Weaknesses
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
ADP Enrichment
CVE Program Container
Additional References
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s
- https://go.dev/issue/54385
- https://go.dev/cl/423514
- https://pkg.go.dev/vuln/GO-2022-0988
References
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s
- https://go.dev/issue/54385
- https://go.dev/cl/423514
- https://pkg.go.dev/vuln/GO-2022-0988
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.