CVE-2022-41722: Path traversal on Windows in path/filepath

Published Feb 15, 2023
·
Updated

A flaw was found in Go, where it could allow a remote attacker to traverse directories on the system, caused by improper validation of user requests by the filepath.Clean on Windows package. This flaw allows an attacker to send a specially-crafted URL request containing "dot dot" sequences (/../) to view arbitrary files on the system.

Other sources

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".

Golang Go could allow a remote attacker to traverse directories on the system, caused by a flaw in the filepath.Clean function. An attacker could send a specially-crafted URL request containing "dot dot" sequences (/../) to view arbitrary files on the system.

— IBM

Path traversal on Windows in path/filepath

— Microsoft

Affected Software

21 affected componentsFixes available
redhat/openshift-clients<0:4.13.0-202305291355.p0.g1024efc.assembly.stream.el8
0:4.13.0-202305291355.p0.g1024efc.assembly.stream.el8
Golang Go<1.19.6
Golang Go=1.20.0
Microsoft Windows
IBM Concert Software<=1.0.0 - 1.0.1
Microsoft cbl2 msft-golang 1.19.8-1
Microsoft azl3 golang 1.22.7-1
Microsoft cbl2 golang 1.22.7-3
Microsoft cbl2 golang 1.21.6-1
Microsoft azl3 golang 1.22.7-2
Microsoft cbl2 golang 1.17.13-2
Microsoft cm1 golang 1.17.13-2
Microsoft cbl2 golang 1.18.8-7
All of the following
Any of the following
Golang Go<1.19.6
Golang Go=1.20.0
Microsoft Windows
redhat/go<1.20.1
1.20.1
redhat/go<1.19.6
1.19.6
debian/golang-1.19<1.19.6-2
1.19.6-2
debian/golang-1.19
1.19.6-11.19.6-2
debian/golang-1.20
1.20.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/openshift-clients to a version that resolves this vulnerability.

    Fixed in 0:4.13.0-202305291355.p0.g1024efc.assembly.stream.el8
  2. Upgrade

    Upgrade redhat/Go to a version that resolves this vulnerability.

    Fixed in 1.20.1
  3. Upgrade

    Upgrade redhat/Go to a version that resolves this vulnerability.

    Fixed in 1.19.6
  4. Upgrade

    Upgrade debian/golang-1.19 to a version that resolves this vulnerability.

    Fixed in 1.19.6-2
  5. Upgrade

    Upgrade debian/golang-1.19 to a version that resolves this vulnerability.

    Fixed in 1.19.6-1Fixed in 1.19.6-2
  6. Upgrade

    Upgrade debian/golang-1.20 to a version that resolves this vulnerability.

    Fixed in 1.20.1-1
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch GO-2023-1568

Event History

Feb 15, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeakness
Data Sourced
12:00 AM
Affected Software
Feb 28, 2023
CVE Published
via MITRE·05:19 PM
Data Sourced
via MITRE·05:19 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:15 PM
DescriptionAffected Software
Mar 1, 2023
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Aug 31, 2023
Data Sourced
via Red Hat·03:28 AM
DescriptionSeverityAffected Software
Oct 21, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
Affected Software
Nov 3, 2026
Data Sourced
via OSV·08:04 AM
Severity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this flaw?

The vulnerability ID for this flaw is CVE-2022-41722.

2

What is the severity of CVE-2022-41722?

The severity of CVE-2022-41722 is high with a CVSS score of 7.5.

3

How does the vulnerability impact the system?

The vulnerability allows a remote attacker to traverse directories on the system, potentially enabling a directory traversal attack.

4

Which software versions are affected by CVE-2022-41722?

The affected software versions include Go 1.19.6, Go 1.20.0, and openshift-clients 4.13.0-202305291355.p0.g1024efc.assembly.stream.el8.

5

How can I fix CVE-2022-41722?

To fix CVE-2022-41722, update to Go version 1.19.6 or 1.20.1, or update openshift-clients to version 4.13.0-202305291355.p0.g1024efc.assembly.stream.el8.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203