CVEfocus › CVE database › CVE-2022-41722

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

CVSS 7.5 HighEPSS 1.7% (higher than 77% of CVEs)Published 2023-02-28Updated 2025-03-07Assigner: Go

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

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
128Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04golang-1.20Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.20Not affected
vulnerable_code_not_present
Debian 12golang-1.19Fixed1.19.6-2DEBIAN-CVE-2022-41722
Red Hat Enterprise Linux 9buildahNot affected
Red Hat Enterprise Linux 9buildah-testsNot affected
Red Hat Enterprise Linux 9butaneNot affected
Red Hat Enterprise Linux 9conmonNot affected
Red Hat Enterprise Linux 9containernetworking-pluginsNot affected
Red Hat Enterprise Linux 9git-lfsNot affected
Red Hat Enterprise Linux 9go-toolsetNot affected
Red Hat Enterprise Linux 9golangNot affected
Red Hat Enterprise Linux 9golang-binNot affected
Red Hat Enterprise Linux 9golang-docsNot affected
Red Hat Enterprise Linux 9golang-miscNot affected
Red Hat Enterprise Linux 9golang-raceNot affected
Red Hat Enterprise Linux 9golang-srcNot affected
Red Hat Enterprise Linux 9golang-testsNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-pcpNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9ignitionNot affected
Red Hat Enterprise Linux 9ignition-edgeNot affected
Red Hat Enterprise Linux 9ignition-grubNot affected
Red Hat Enterprise Linux 9ignition-validateNot affected
Red Hat Enterprise Linux 9oci-seccomp-bpf-hookNot affected
Red Hat Enterprise Linux 9osbuild-composerNot affected
Red Hat Enterprise Linux 9osbuild-composer-coreNot affected
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonNot affected
Red Hat Enterprise Linux 9osbuild-composer-workerNot affected
Red Hat Enterprise Linux 9podmanNot affected
Red Hat Enterprise Linux 9podman-catatonitNot affected
Red Hat Enterprise Linux 9podman-dockerNot affected
Red Hat Enterprise Linux 9podman-gvproxyNot affected
Red Hat Enterprise Linux 9podman-pluginsNot affected
Red Hat Enterprise Linux 9podman-remoteNot affected
Red Hat Enterprise Linux 9podman-testsNot affected
Red Hat Enterprise Linux 9rsyslogNot affected
Red Hat Enterprise Linux 9rsyslog-cryptoNot affected
Red Hat Enterprise Linux 9rsyslog-docNot affected
Red Hat Enterprise Linux 9rsyslog-elasticsearchNot affected
Red Hat Enterprise Linux 9rsyslog-gnutlsNot affected
Red Hat Enterprise Linux 9rsyslog-gssapiNot affected
Red Hat Enterprise Linux 9rsyslog-kafkaNot affected
Red Hat Enterprise Linux 9rsyslog-logrotateNot affected
Red Hat Enterprise Linux 9rsyslog-mmauditNot affected
Red Hat Enterprise Linux 9rsyslog-mmfieldsNot affected
Red Hat Enterprise Linux 9rsyslog-mmjsonparseNot affected
Red Hat Enterprise Linux 9rsyslog-mmkubernetesNot affected
Red Hat Enterprise Linux 9rsyslog-mmnormalizeNot affected
Red Hat Enterprise Linux 9rsyslog-mmsnmptrapdNot affected
Red Hat Enterprise Linux 9rsyslog-mysqlNot affected
Red Hat Enterprise Linux 9rsyslog-omamqp1Not affected
Red Hat Enterprise Linux 9rsyslog-opensslNot affected
Red Hat Enterprise Linux 9rsyslog-pgsqlNot affected
Red Hat Enterprise Linux 9rsyslog-relpNot affected
Red Hat Enterprise Linux 9rsyslog-snmpNot affected
Red Hat Enterprise Linux 9rsyslog-udpspoofNot affected
Red Hat Enterprise Linux 9runcNot affected
Red Hat Enterprise Linux 9skopeoNot affected
Red Hat Enterprise Linux 9skopeo-testsNot affected
Red Hat Enterprise Linux 9weldr-clientNot affected
Red Hat Enterprise Linux 8buildahNot affected
Red Hat Enterprise Linux 8buildah-testsNot affected
Red Hat Enterprise Linux 8conmonNot affected
Red Hat Enterprise Linux 8containernetworking-pluginsNot affected
Red Hat Enterprise Linux 8containers-commonNot affected
Red Hat Enterprise Linux 8git-lfsNot affected
Red Hat Enterprise Linux 8go-toolsetNot affected
Red Hat Enterprise Linux 8golangNot affected
Red Hat Enterprise Linux 8golang-binNot affected
Red Hat Enterprise Linux 8golang-docsNot affected
Red Hat Enterprise Linux 8golang-miscNot affected
Red Hat Enterprise Linux 8golang-raceNot affected
Red Hat Enterprise Linux 8golang-srcNot affected
Red Hat Enterprise Linux 8golang-testsNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-pcpNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookNot affected
Red Hat Enterprise Linux 8osbuild-composerNot affected
Red Hat Enterprise Linux 8osbuild-composer-coreNot affected
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonNot affected
Red Hat Enterprise Linux 8osbuild-composer-workerNot affected
Red Hat Enterprise Linux 8podmanNot affected
Red Hat Enterprise Linux 8podman-catatonitNot affected
Red Hat Enterprise Linux 8podman-dockerNot affected
Red Hat Enterprise Linux 8podman-gvproxyNot affected
Red Hat Enterprise Linux 8podman-manpagesNot affected
Red Hat Enterprise Linux 8podman-pluginsNot affected
Red Hat Enterprise Linux 8podman-remoteNot affected
Red Hat Enterprise Linux 8podman-testsNot affected
Red Hat Enterprise Linux 8rsyslogNot affected
Red Hat Enterprise Linux 8rsyslog-cryptoNot affected
Red Hat Enterprise Linux 8rsyslog-docNot affected
Red Hat Enterprise Linux 8rsyslog-elasticsearchNot affected
Red Hat Enterprise Linux 8rsyslog-gnutlsNot affected
Red Hat Enterprise Linux 8rsyslog-gssapiNot affected
Red Hat Enterprise Linux 8rsyslog-kafkaNot affected
Red Hat Enterprise Linux 8rsyslog-mmauditNot affected
Red Hat Enterprise Linux 8rsyslog-mmfieldsNot affected
Red Hat Enterprise Linux 8rsyslog-mmjsonparseNot affected
Red Hat Enterprise Linux 8rsyslog-mmkubernetesNot affected
Red Hat Enterprise Linux 8rsyslog-mmnormalizeNot affected
Red Hat Enterprise Linux 8rsyslog-mmsnmptrapdNot affected
Red Hat Enterprise Linux 8rsyslog-mysqlNot affected
Red Hat Enterprise Linux 8rsyslog-omamqp1Not affected
Red Hat Enterprise Linux 8rsyslog-opensslNot affected
Red Hat Enterprise Linux 8rsyslog-pgsqlNot affected
Red Hat Enterprise Linux 8rsyslog-relpNot affected
Red Hat Enterprise Linux 8rsyslog-snmpNot affected
Red Hat Enterprise Linux 8rsyslog-udpspoofNot affected
Red Hat Enterprise Linux 8runcNot affected
Red Hat Enterprise Linux 8skopeoNot affected
Red Hat Enterprise Linux 8skopeo-testsNot affected
Red Hat Enterprise Linux 8toolboxNot affected
Red Hat Enterprise Linux 8toolbox-testsNot affected
Red Hat Enterprise Linux 8weldr-clientNot affected
Go librarystdlibFixed1.20.1GO-2023-1568

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.