CVE-2022-29804
Path traversal via Clean on Windows in path/filepath
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
En filepath.Clean en path/filepath en Go versiones anteriores a 1.17.11 y en 1.18.x antes de 1.18.3 en Windows, las rutas inválidas como .\c: podían convertirse en rutas válidas (como c: en este ejemplo).
An update that solves four vulnerabilities and has one errata is now available. This update for go1.17 fixes the following issues. Fixed crypto/rand rand.Read hangs with extremely large buffers. Fixed crypto/tls session tickets lack random ticket_age_add. Fixed path/filepath Clean returns 'c:' on Windows. Fixed os/exec empty Cmd.Path can result in running unintended binary on Windows.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-04-26 CVE Reserved
- 2022-06-07 CVE Published
- 2024-08-03 CVE Updated
- 2025-07-05 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CAPEC
References (5)
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Golang Search vendor "Golang" | Go Search vendor "Golang" for product "Go" | < 1.17.11 Search vendor "Golang" for product "Go" and version " < 1.17.11" | - |
Affected
| in | Microsoft Search vendor "Microsoft" | Windows Search vendor "Microsoft" for product "Windows" | - | - |
Safe
|
Golang Search vendor "Golang" | Go Search vendor "Golang" for product "Go" | >= 1.18.0 < 1.18.3 Search vendor "Golang" for product "Go" and version " >= 1.18.0 < 1.18.3" | - |
Affected
| in | Microsoft Search vendor "Microsoft" | Windows Search vendor "Microsoft" for product "Windows" | - | - |
Safe
|