CVE-2022-41722
HIGH 7.5CVSS 3.1Path traversal on Windows in path/filepath
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
- Published
- 28 Feb 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- BIT-golang-2022-41722GO-2023-1568
- Sources
- NVDJSONOSV GO-2023-1568JSON
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.19.6 | 1.19.6 |
| NVD | golang | gocpe:2.3:a:golang:go:1.20.0:-:*:*:*:*:*:* |
= 1.20.0 | |
| OSV | Go | stdlib | < 1.19.6; >= 1.20.0-0, < 1.20.1 | 1.19.6, 1.20.1 |
References
- https://go.dev/cl/468123 · Issue Tracking, FIX
- https://go.dev/issue/57274 · Issue Tracking, REPORT
- https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E · Mailing List, Vendor Advisory, WEB
- https://pkg.go.dev/vuln/GO-2023-1568 · Vendor Advisory
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 28 Feb 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Feb 2023)