Skip to content
OpenAdvisories

Description

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

Affected products

VendorProductAffectedFixed
Go standard library path/filepath < 1.19.6, 1.20.0-0 – < 1.20.1 1.19.6

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 golang-1.19 1.19.6-2 —
ReleasePackageFixed inAdvisory
Red Hat Openshift Ironic 4 openstack-ironic +5 1:21.3.1-0.20230510075528.b3c902e.el9 RHSA-2023:3366
Red Hat Openshift Ironic 4 python-werkzeug +1 2.0.3-4.el9 RHSA-2023:1325
Red Hat OpenShift 4 bpftool 7.0.0-284.16.1.el9_2 RHSA-2023:3366
Red Hat OpenShift 4 buildah +1 1:1.29.1-1.rhaos4.13.el9 RHSA-2023:3366, RHSA-2023:1325
Red Hat OpenShift 4 cri-o 1.26.3-3.rhaos4.13.git641290e.el9 RHSA-2023:3366, RHSA-2023:1325
Red Hat OpenShift 4 cri-tools 1.26.0-2.el9 RHSA-2023:3366
Red Hat OpenShift 4 haproxy +1 2.2.24-3.rhaos4.13.el8 RHSA-2023:1325
Red Hat OpenShift 4 kernel-rt +21 5.14.0-284.16.1.rt14.301.el9_2 RHSA-2023:3366
Red Hat OpenShift 4 openshift +1 4.13.0-202304211155.p0.gb404935.assembly.stream.el8 RHSA-2023:3366, RHSA-2023:1325
Red Hat OpenShift 4 openshift-clients +1 4.13.0-202303241616.p0.g92b1a3d.assembly.stream.el8 RHSA-2023:3366, RHSA-2023:1325
Red Hat OpenShift 4 perf +60 5.14.0-284.16.1.el9_2 RHSA-2023:3366
Red Hat OpenShift 4 podman +6 3:4.4.1-3.rhaos4.13.el8 RHSA-2023:3366, RHSA-2023:1325
Red Hat OpenShift 4 python-werkzeug +1 1.0.1-3.el8ost RHSA-2023:1325
Red Hat OpenShift 4 skopeo +1 2:1.10.0-1.rhaos4.13.el9 RHSA-2023:3366, RHSA-2023:1325
ReleasePackageFixed inAdvisory
SLES 15 SP4 go1.19 1.19.7-150000.1.23.1 SUSE-SU-2023:0733-1
SLES 15 SP4 go1.20 1.20.2-150000.1.5.1 SUSE-SU-2023:0735-1
SLES 15 SP3 go1.19 1.19.7-150000.1.23.1 SUSE-SU-2023:0733-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 go1.19 1.19.7-150000.1.23.1 SUSE-SU-2023:0733-1
SLE Real Time 15 SP3 go1.19 1.19.7-150000.1.23.1 SUSE-SU-2023:0733-1
SLE HPC 15 SP3 go1.19 1.19.7-150000.1.23.1 SUSE-SU-2023:0733-1
SUSE Enterprise Storage 7.1 go1.19 1.19.7-150000.1.23.1 SUSE-SU-2023:0733-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.19 1.19.6-1.1 openSUSE-SU-2024:12707-1
openSUSE Tumbleweed go1.20 1.20.1-1.1 openSUSE-SU-2024:12708-1
openSUSE Leap 15.4 go1.19 1.19.7-150000.1.23.1 SUSE-SU-2023:0733-1
openSUSE Leap 15.4 go1.20 1.20.2-150000.1.5.1 SUSE-SU-2023:0735-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 golang +7 1.19.8-1.amzn2023.0.1 ALAS2023-2023-175
Amazon Linux 2 golang +7 1.18.9-1.amzn2.0.2 ALAS2-2023-2015

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang 1.22.7-2 —
Azure Linux 2 (CBL-Mariner) golang 1.21.6-1 —
Azure Linux 2 (CBL-Mariner) msft-golang 1.19.8-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib < 1.19.6 · >= 1.20.0-0, < 1.20.1 1.19.6, 1.20.1 GO-2023-1568

Advisories 13

References