CVE-2022-29804
HIGH 7.5CVSS 3.1Path traversal via Clean on Windows in path/filepath
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.
- Published
- 10 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- BIT-golang-2022-29804GO-2022-0533
- Sources
- NVDJSONOSV GO-2022-0533JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.17.11 | 1.17.11 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.18.0, < 1.18.3 | 1.18.3 |
| OSV | Go | stdlib | < 1.17.11; >= 1.18.0-0, < 1.18.3 | 1.17.11, 1.18.3 |
References
- https://go.dev/cl/401595 · FIX
- https://go.dev/issue/52476 · REPORT
- https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 · FIX
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ · WEB
- https://pkg.go.dev/vuln/GO-2022-0533
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 10 Aug 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2022)