Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-41722

golang: path/filepath: path-filepath filepath.Clean path traversal

Overview

Published
28 Feb 2023
Modified
17 Jun 2026
High CVE
2 Registry packages
122 OS packages
12 Linux distributions
Yes Fix available

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

Packages affected by CVE-2022-41722
EcosystemPackageVulnerableFixed in
Bitnami golang <1.19.6>=1.20.0, <1.20.1 1.19.61.20.1
Go stdlib <1.19.6>=1.20.0-0, <1.20.1 1.19.61.20.1

Open a package to see all its vulnerabilities.

Operating systems · 47 fixes

Azure Linux 1 release · 1 package

fixed 1
golang
Azure Linux fixes for CVE-2022-41722
ReleasePackageFixed in
3.0 golang 0:1.22.7-2.azl3

Photon OS 2 releases · 3 packages

fixed 6
falco go kubernetes-dashboard
Photon OS fixes for CVE-2022-41722
ReleasePackageFixed 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

wont fix 1 fixed 24
butane python3-werkzeug cri-o haproxy22 openshift-clients openshift-hyperkube +7
Red Hat fixes for CVE-2022-41722
ReleasePackageFixed inAdvisory
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

fixed 2
go1-19 go1-20
SUSE Linux Enterprise fixes for CVE-2022-41722
ReleasePackageFixed inAdvisory
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

fixed 1
golang
amazon linux fixes for CVE-2022-41722
ReleasePackageFixed in
2023 golang +7 1.19.8-1.amzn2023.0.1

chainguard 1 release · 1 package

fixed 1
kubeflow-katib
chainguard fixes for CVE-2022-41722
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40

debian 2 releases · 2 packages

affected 1 fixed 1
golang-1-15 golang-1-19
debian fixes for CVE-2022-41722
ReleasePackageFixed in
11 golang-1-15 affected
12 golang-1-19 1.19.6-2

echo 1 release · 1 package

fixed 1
golang-1-19
echo fixes for CVE-2022-41722
ReleasePackageFixed in
golang-1-19 1.19.6-2

openSUSE 1 release · 2 packages

fixed 2
go1-19 go1-20
openSUSE fixes for CVE-2022-41722
ReleasePackageFixed inAdvisory
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

fixed 1
rootio-golang-1-19
root.io debian fixes for CVE-2022-41722
ReleasePackageFixed in
12 rootio-golang-1-19 1.19.6-2

wolfi 1 release · 1 package

fixed 1
kubeflow-katib
wolfi fixes for CVE-2022-41722
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40

alpine 4 releases · 1 package

not affected 4
go
alpine fixes for CVE-2022-41722
ReleasePackageFixed in
3.22 go not affected
3.23 go not affected
3.24 go not affected
edge go not affected

References

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.