GO-2022-0533
Path traversal via Clean on Windows in path/filepath
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2022-29804
- Alias
- BIT-golang-2022-29804
Description
On Windows, the filepath.Clean function can convert certain invalid paths to valid, absolute paths, potentially allowing a directory traversal attack. For example, Clean(".\c:") returns "c:".
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.17.11, introduced 1.18.0-0, fixed 1.18.3 |
Références
- https://go.dev/cl/401595 FIX
- https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 FIX
- https://go.dev/issue/52476 REPORT
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |