CVE-2022-41722
HIGH7.5EPSS 0.33%Path traversal on Windows in path/filepath
Published: 2/16/2023Modified: 4/28/2026
Also known as:DEBIAN-CVE-2022-41722
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 packages (4)
- Bitnami/golangfrom 0, < 1.19.6, >= 1.20.0, < 1.20.1
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0, < 1.19.6-2
- Go/stdlibfrom 0, < 1.19.6, >= 1.20.0-0, < 1.20.1
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 |