CVE-2022-41722Path traversal on Windows in path/filepath
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | golang-1.20 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | golang-1.20 | Not affected vulnerable_code_not_present | ||
| Debian 12 | golang-1.19 | Fixed | 1.19.6-2 | DEBIAN-CVE-2022-41722 |
| Red Hat Enterprise Linux 9 | buildah | Not affected | ||
| Red Hat Enterprise Linux 9 | buildah-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | butane | Not affected | ||
| Red Hat Enterprise Linux 9 | conmon | Not affected | ||
| Red Hat Enterprise Linux 9 | containernetworking-plugins | Not affected | ||
| Red Hat Enterprise Linux 9 | git-lfs | Not affected | ||
| Red Hat Enterprise Linux 9 | go-toolset | Not affected | ||
| Red Hat Enterprise Linux 9 | golang | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-bin | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-misc | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-race | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-src | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | ignition | Not affected | ||
| Red Hat Enterprise Linux 9 | ignition-edge | Not affected | ||
| Red Hat Enterprise Linux 9 | ignition-grub | Not affected | ||
| Red Hat Enterprise Linux 9 | ignition-validate | Not affected | ||
| Red Hat Enterprise Linux 9 | oci-seccomp-bpf-hook | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-core | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-dnf-json | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-worker | Not affected | ||
| Red Hat Enterprise Linux 9 | podman | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-catatonit | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-crypto | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-gnutls | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-gssapi | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-kafka | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-logrotate | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-mmaudit | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-mmfields | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-mmjsonparse | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-mmkubernetes | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-mmnormalize | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-mmsnmptrapd | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-mysql | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-omamqp1 | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-openssl | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-pgsql | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-relp | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | rsyslog-udpspoof | Not affected | ||
| Red Hat Enterprise Linux 9 | runc | Not affected | ||
| Red Hat Enterprise Linux 9 | skopeo | Not affected | ||
| Red Hat Enterprise Linux 9 | skopeo-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | weldr-client | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | conmon | Not affected | ||
| Red Hat Enterprise Linux 8 | containernetworking-plugins | Not affected | ||
| Red Hat Enterprise Linux 8 | containers-common | Not affected | ||
| Red Hat Enterprise Linux 8 | git-lfs | Not affected | ||
| Red Hat Enterprise Linux 8 | go-toolset | Not affected | ||
| Red Hat Enterprise Linux 8 | golang | Not affected | ||
| Red Hat Enterprise Linux 8 | golang-bin | Not affected | ||
| Red Hat Enterprise Linux 8 | golang-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | golang-misc | Not affected | ||
| Red Hat Enterprise Linux 8 | golang-race | Not affected | ||
| Red Hat Enterprise Linux 8 | golang-src | Not affected | ||
| Red Hat Enterprise Linux 8 | golang-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | oci-seccomp-bpf-hook | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-core | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-dnf-json | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-worker | Not affected | ||
| Red Hat Enterprise Linux 8 | podman | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-catatonit | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-crypto | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-gnutls | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-gssapi | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-kafka | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-mmaudit | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-mmfields | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-mmjsonparse | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-mmkubernetes | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-mmnormalize | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-mmsnmptrapd | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-omamqp1 | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-pgsql | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-relp | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | rsyslog-udpspoof | Not affected | ||
| Red Hat Enterprise Linux 8 | runc | Not affected | ||
| Red Hat Enterprise Linux 8 | skopeo | Not affected | ||
| Red Hat Enterprise Linux 8 | skopeo-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | toolbox | Not affected | ||
| Red Hat Enterprise Linux 8 | toolbox-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | weldr-client | Not affected | ||
| Go library | stdlib | Fixed | 1.20.1 | GO-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.
- Go standard library path/filepath: affected: before 1.19.6, 1.20.0-0 to before 1.20.1; fixed in
1.19.6,1.20.1
References
- https://go.dev/issue/57274
- https://go.dev/cl/468123
- https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E
- https://pkg.go.dev/vuln/GO-2023-1568
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.