CVE-2022-41722
golang: path/filepath: path-filepath filepath.Clean path traversal
Overview
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".
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-22
Affected packages · 2
Operating systems · 47 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | golang | 0:1.22.7-2.azl3 |
Photon OS 2 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | falco +1 | 0.35.0-4.0510183001.ph4 |
| 4.0 | go | 1.20.2-1.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
| 5.0 | falco | 0.32.2-6.0601037001.ph5 |
| 5.0 | go | 1.26.3-1.ph5 |
| 5.0 | kubernetes-dashboard | 2.7.0-6.ph5 |
Red Hat 3 releases · 13 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | butane +3 | wont fix | — |
| 8 | python3-werkzeug | 0:1.0.1-3.el8ost | RHSA-2023:1325 |
| 8 | cri-o | 0:1.26.3-7.rhaos4.13.gitec064c9.el8 | RHSA-2023:3366 |
| 8 | haproxy22 | 0:2.2.24-3.rhaos4.13.el8 | RHSA-2023:1325 |
| 8 | openshift-clients +1 | 0:4.13.0-202303241616.p0.g92b1a3d.assembly.stream.el8 | RHSA-2023:1325 |
| 8 | openshift-hyperkube | 0:4.13.0-202304211155.p0.gb404935.assembly.stream.el8 | RHSA-2023:1325 |
19 more rows
SUSE Linux Enterprise 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-19 +2 | 1.19.7-150000.1.23.1 | SUSE-SU-2023:0733-1 |
| 15.4 | go1-20 +2 | 1.20.2-150000.1.5.1 | SUSE-SU-2023:0735-1 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +7 | 1.19.8-1.amzn2023.0.1 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 |
debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | 1.19.6-2 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | 1.19.6-2 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-19 +2 | 1.19.6-1.1 | openSUSE-SU-2024:12707-1 |
| Tumbleweed | go1-20 +2 | 1.20.1-1.1 | openSUSE-SU-2024:12708-1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | 1.19.6-2 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | not affected |
| 3.23 | go | not affected |
| 3.24 | go | not affected |
| edge | go | not affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-41722
- go.dev https://go.dev/cl/468123
- go.dev https://go.dev/issue/57274
- groups.google.com https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-41722
- pkg.go.dev https://pkg.go.dev/vuln/GO-2023-1568
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-41722
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.