What’s Vulnerable › Vulnerabilities
CVE-2022-29804: Path traversal via Clean on Windows in path/filepath
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-08-10 · updated 2026-06-17
- Weakness: CWE-22
Description
Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack.
Affected products
- Go: before 1.17.11; from 1.18.0 before 1.18.3 — fixed in 1.17.11, 1.18.3
How to fix
Upgrade to a fixed version: Go 1.17.11, 1.18.3. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/401595
- https://go.dev/issue/52476
- https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
- https://pkg.go.dev/vuln/GO-2022-0533
- https://go.dev/cl/401595
- https://go.dev/issue/52476
- https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
- https://pkg.go.dev/vuln/GO-2022-0533
Get alerted when CVE-2022-29804 or the next vulnerability affects your stack