GO-2022-0988
Failure to strip relative path components in net/url
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2022-32190
- Alias
- BIT-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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 1.19.0-0, fixed 1.19.1 |
Références
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s WEB
- https://go.dev/issue/54385 REPORT
- https://go.dev/cl/423514 FIX
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |