CVE-2022-29804
HIGH7.5EPSS 0.05%Path traversal via Clean on Windows in path/filepath
Published: 7/28/2022Modified: 5/20/2025
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 packages (2)
- Bitnami/golangfrom 0, < 1.17.11, >= 1.18.0, < 1.18.3
- Go/stdlibfrom 0, < 1.17.11, >= 1.18.0-0, < 1.18.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (6)
- PATCHhttps://go.dev/cl/401595
- PATCHhttps://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290
- REPORThttps://go.dev/issue/52476
- WEBhttps://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-29804
- WEBhttps://pkg.go.dev/vuln/GO-2022-0533