Skip to content
Fencer Intel
high 7.5

CVE-2022-41722 json

Path traversal on Windows in path/filepath

published 3y ago modified 2mo ago also BIT-golang-2022-41722 , EUVD-2022-44895 , GO-2023-1568

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.7%
EPSS 1.7% chance of exploitation in 30 days, percentile 77%
public exploits
0
none known

Summary

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

Patch / fix

  • bitnami golang 1.19.6, 1.20.1
  • go stdlib 1.19.6, 1.20.1
  • Go standard library path/filepath 1.19.6, 1.20.1
  • golang-1.19 Debian 12 1.19.6-2

debian advisories DEBIAN-CVE-2022-41722

  • cri-o openshift 4.13 1.26.3-3.rhaos4.13.git641290e.el9
  • podman openshift 4.13 3:4.4.1-3.rhaos4.13.el8
  • podman openshift 4.13 3:4.4.1-3.rhaos4.13.el9
  • skopeo openshift 4.13 2:1.10.0-1.rhaos4.13.el9
  • buildah openshift 4.13 1:1.29.1-1.rhaos4.13.el9
  • haproxy openshift 4.13 2.2.24-3.rhaos4.13.el8
  • haproxy22 openshift 4.13 2.2.24-3.rhaos4.13.el8
  • openshift openshift 4.13 4.13.0-202304211155.p0.gb404935.assembly.stream.el8

red hat advisories RHSA-2023:1325RHSA-2023:3366

  • go1.20 SLE Module for Development Tools 15 SP4, openSUSE Leap 15.4 1.20.2-150000.1.5.1
  • go1.19 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Real Time 15 SP3 +5 more 1.19.7-150000.1.23.1

suse advisories SUSE-SU-2023:0735-1SUSE-SU-2023:0733-1

  • go1.19 openSUSE Tumbleweed 1.19.6-1.1
  • go1.20 openSUSE Tumbleweed 1.20.1-1.1

opensuse advisories openSUSE-SU-2024:12707-1openSUSE-SU-2024:12708-1

  • msft-golang CBL-Mariner 2.0 1.19.8-1
  • golang CBL-Mariner 2.0 1.21.6-1
  • golang Azure Linux 3.0 1.22.7-2

azure linux advisories AZL-13738AZL-37435AZL-37449AZL-47227

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2022-41722 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-41722 updated cvss 7.5

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

  • Red Hat OpenShift Container Platform 4 butane, ignition, ignition-validate, butane-redistributable
    affected: no fix planned “Will not fix”
  • Red Hat Cryostat 2 cryostat/cryostat-rhel8-operator
    under investigation
  • Red Hat OpenShift Container Platform 4.13 cri-tools 1.26.0-2.el9, cri-o 1.26.3-7.rhaos4.13.gitec064c9.el8, cri-o 1.26.3-8.rhaos4.13.gitec064c9.el9, openshift 4.13.0-202305301919.p0.g0001a21.assembly.stream.el8, openshift 4.13.0-202305301919.p0.g0001a21.assembly.stream.el9, openshift-clients 4.13.0-202303241616.p0.g92b1a3d.assembly.stream.el8, +54 more
    fixed: vendor fix RHSA-2023:3366
  • Red Hat cert-manager Operator for Red Hat OpenShift cert-manager/cert-manager-operator-rhel9 Red Hat Custom Metric Autoscaler operator for Red Hat Openshift custom-metrics-autoscaler/custom-metrics-autoscaler-rhel8 Red Hat Ironic content for Red Hat OpenShift Container Platform 4.13 tox 3.23.0-2.el9.1, crudini 0.9.3-4.el9, pysnmp 4.4.12-6.el9, future 0.18.2-9.el9.1, subunit 1.4.0-6.el9.1, pyflakes 2.2.0-3.el9.1, +471 more Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/logging-loki-rhel9 Red Hat Migration Toolkit for Applications 6 mta/mta-hub-rhel8 Red Hat Migration Toolkit for Containers rhmtc/openshift-velero-plugin-rhel8
    +31 more products
    Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-rhel8-operator Red Hat mirror registry for Red Hat OpenShift mirror-registry-container Red Hat Network Observability Operator network-observability/network-observability-rhel9-operator Red Hat Node HealthCheck Operator workload-availability/node-healthcheck-rhel8-operator Red Hat Node Maintenance Operator workload-availability/node-maintenance-rhel8-operator Red Hat OpenShift API for Data Protection oadp/oadp-velero-rhel8 Red Hat OpenShift Pipelines openshift-pipelines-client Red Hat OpenShift Run Once Duration Override Operator run-once-duration-override-operator/run-once-duration-override-rhel9 Red Hat OpenShift Secondary Scheduler Operator openshift-secondary-scheduler-operator/secondary-scheduler-operator-rhel8 Red Hat OpenShift Serverless openshift-serverless-clients, openshift-serverless-1/kn-client-kn-rhel9 Red Hat OpenShift Service Mesh 2 openshift-golang-builder-container Red Hat 3scale API Management Platform 2 3scale-amp26/3scale-operator Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/subctl-rhel9 Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-main-rhel8 Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8 Red Hat Ansible Automation Platform 2 receptor, openshift-clients Red Hat Application Interconnect 1.0 qpid-proton, skupper-cli, skupper-router Red Hat Ceph Storage 3 golang, golang-bin, golang-src Red Hat Ceph Storage 5 rhceph/rhceph-5-dashboard-rhel8 Red Hat Enterprise Linux 8 runc, conmon, golang, podman, skopeo, buildah, +60 more Red Hat Enterprise Linux 9 runc, butane, conmon, golang, podman, skopeo, +50 more Red Hat OpenShift Container Platform 4 conmon, podman, skopeo, buildah, conmon-rs, microshift, +29 more Red Hat OpenShift Container Platform 4.13 tini 0.16.1-1.el8ar, grpc 1.18.0-4.el8ost, python-rsa 4.7-1.el8, python3-rsa 4.7-1.el8, cri-tools 1.26.0-1.el9, grpc-cli 1.18.0-4.el8ost, +351 more Red Hat Openshift Data Foundation 4 mcg, odf4/cephcsi-rhel9 Red Hat OpenShift Data Science (RHODS) rhods/odh-mm-rest-proxy-rhel8 Red Hat OpenShift Dev Spaces devspaces/udi-rhel8 Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-agent-rhel8 Red Hat OpenShift GitOps openshift-gitops-kam, openshift-gitops-1/gitops-rhel8 Red Hat OpenShift on AWS rosa Red Hat Openshift Sandboxed Containers openshift-sandboxed-containers/osc-rhel8-operator Red Hat OpenShift Virtualization 4 kubevirt, openshift-golang-builder-container
    not affected: vulnerable code not present

9 more not affected in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
last yr.

Exploit prediction

1.68% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami golang
<1.19.6
>=1.20.0, <1.20.1
1.19.6
1.20.1
go stdlib
<1.19.6
>=1.20.0-0, <1.20.1
1.19.6
1.20.1

Affected products

  • Go standard library path/filepath

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.