CVE-2022-41722
Path traversal on Windows in path/filepath
7.5
HIGH
CVSS 3.1
EPSS 0.45%
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".
How to fix CVE-2022-41722
To remediate CVE-2022-41722, upgrade the affected package to a fixed version below.
- —upgrade to 1.19.6 or later
- —no fix listed
- —upgrade to 1.19.6-2 or later
- —upgrade to 1.19.6 or later
Is CVE-2022-41722 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 1.19.6, >= 1.20.0, < 1.20.1
- from 0
- from 0, < 1.19.6-2
- from 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 |