cve.bz

CVE-2022-41722 golang go: Path traversal

7.5 highEPSS 1.7%Fix available

High (7.5) in golang go. EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.19.6, 1.20.1.

On this page
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".

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-03-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-41722 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-41722?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-41722?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-41722 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library path/filepathbefore 1.19.6
Go standard library path/filepathfrom 1.20.0-0 before 1.20.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2023-1568Gostdlib<1.19.6
>=1.20.0-0 <1.20.1
1.19.6, 1.20.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.191.19.6-2DEBIAN-CVE-2022-41722
Red Hatopenshift:4.13::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.26.3-7.rhaos4.13.gitec064c9.el8RHSA-2023:3366
Red Hatopenshift:4.13::el8haproxy, haproxy22, haproxy-debugsource and 1 more0:2.2.24-3.rhaos4.13.el8RHSA-2023:1325
Red Hatopenshift:4.13::el8openshift, openshift-hyperkube0:4.13.0-202304211155.p0.gb404935.assembly.stream.el8RHSA-2023:1325
Red Hatopenshift:4.13::el8openshift, openshift-hyperkube0:4.13.0-202305301919.p0.g0001a21.assembly.stream.el8RHSA-2023:3366
Red Hatopenshift:4.13::el8openshift-clients, openshift-clients-redistributable0:4.13.0-202303241616.p0.g92b1a3d.assembly.stream.el8RHSA-2023:1325
Red Hatopenshift:4.13::el8openshift-clients, openshift-clients-redistributable0:4.13.0-202305291355.p0.g1024efc.assembly.stream.el8RHSA-2023:3366
Red Hatopenshift:4.13::el8podman, podman-tests, podman-docker and 10 more3:4.4.1-3.rhaos4.13.el8RHSA-2023:1325
Red Hatopenshift:4.13::el8python-werkzeug, python3-werkzeug0:1.0.1-3.el8ostRHSA-2023:1325
Red Hatopenshift:4.13::el9bpftool, bpftool-debuginfo0:7.0.0-284.16.1.el9_2RHSA-2023:3366
Red Hatopenshift:4.13::el9buildah, buildah-tests, buildah-debuginfo and 2 more1:1.29.1-1.1.rhaos4.13.el9RHSA-2023:3366
Red Hatopenshift:4.13::el9buildah, buildah-tests, buildah-debuginfo and 2 more1:1.29.1-1.rhaos4.13.el9RHSA-2023:1325
Red Hatopenshift:4.13::el9cri-o, cri-o-debuginfo, cri-o-debugsource0:1.26.3-3.rhaos4.13.git641290e.el9RHSA-2023:1325
14 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morego1.191.19.7-150000.1.23.1SUSE-SU-2023:0733-1
SUSELinux Enterprise Module for Development Tools 15 SP4go1.201.20.2-150000.1.5.1SUSE-SU-2023:0735-1
openSUSELeap 15.4go1.191.19.7-150000.1.23.1SUSE-SU-2023:0733-1
openSUSELeap 15.4go1.201.20.2-150000.1.5.1SUSE-SU-2023:0735-1
openSUSETumbleweedgo1.191.19.6-1.1openSUSE-SU-2024:12707-1
openSUSETumbleweedgo1.201.20.1-1.1openSUSE-SU-2024:12708-1
Azure Linux2golang1.21.6-1AZL-37435 AZL-37449
Azure Linux2msft-golang1.19.8-1AZL-13738
Azure Linux3golang1.22.7-2AZL-47227

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This CVE is specific to versions of Go on Windows. It does not affect any packages shipped with Red Hat Enterprise Linux 8 and Red Hat Enterprise Linux 9.

The following components were fixed in RHSA-2023:3366 and have therefore been marked as "Not Affected": `openshift`, `cri-tools`, `cri-o`, `containernetworking-plugins` and `conmon`

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.13openshift-clients-0:4.13.0-202303241616.p0.g92b1a3d.assembly.stream.el8Fixed 2023-05-18RHSA-2023:1325
Red Hat OpenShift Container Platform 4.13openshift4/cloud-network-config-controller-rhel8:v4.13.0-202305171615.p0.g71ccef5.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/network-tools-rhel8:v4.13.0-202305232329.p0.gb4098c6.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/oc-mirror-plugin-rhel8:v4.13.0-202305171615.p0.gaee430b.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/ose-agent-installer-api-server-rhel8:v4.13.0-202305190628.p0.g8db33db.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/ose-agent-installer-node-agent-rhel8:v4.13.0-202305190628.p0.ge8de058.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/ose-aws-ebs-csi-driver-rhel8-operator:v4.13.0-202305191154.p0.gb6dee5c.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/ose-baremetal-installer-rhel8:v4.13.0-202305210316.p0.g2f227cc.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/ose-baremetal-rhel8-operator:v4.13.0-202305190854.p0.gd17c8bc.assembly.streamFixed 2023-05-30RHSA-2023:3304
Red Hat OpenShift Container Platform 4.13openshift4/ose-baremetal-runtimecfg-rhel8:v4.13.0-202305211041.p0.gf0c1297.assembly.streamFixed 2023-05-30RHSA-2023:3304
cert-manager Operator for Red Hat OpenShiftcert-manager/cert-manager-operator-rhel9Not affected
Cryostat 2cryostat-tech-preview/cryostat-rhel8-operatorUnder investigation
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Migration Toolkit for Applications 6mta/mta-hub-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-velero-plugin-rhel8Not affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel8-operatorNot affected
mirror registry for Red Hat OpenShiftmirror-registry-containerNot affected
Network Observability Operatornetwork-observability/network-observability-rhel9-operatorNot affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel8-operatorNot affected
147 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-41722.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON