CVE-2022-41722 Path traversal on Windows in path/filepath
HighCVSS 7.5
EPSS 1.7%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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".
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| stdlib(Go) | < 1.19.6 | 1.19.6 |
| stdlib(Go) | >= 1.20.0-0, < 1.20.1 | 1.20.1 |
| path/filepath(Go) | < 1.19.6 | 1.19.6 |
| path/filepath(Go) | >= 1.20.0-0, < 1.20.1 | 1.20.1 |
| golang go | < 1.19.6 | 1.19.6 |
| golang go | = 1.20.0 | No fix listed |
| debian/golang-1.19(Debian:12) | < 1.19.6-2 | 1.19.6-2 |
References
- go.dev issue-tracking
- go.dev issue-tracking patch
- groups.google.com mailing-list vendor-advisory
- Debian Security Tracker CVE-2022-41722 vendor-advisory
- pkg.go.dev vendor-advisory