Skip to content
OpenAdvisories
Unscored CVE-2022-29804 BIT-golang-2022-29804EUVD-2022-34125GHSA-4r7w-gv7f-q74gGO-2022-0533

Path traversal via Clean on Windows in path/filepath

Published Aug 9, 2022 · Updated Aug 3, 2024 · Assigned by Go

Description

Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack.

Affected products

VendorProductAffectedFixed
Go standard library path/filepath < 1.17.11, 1.18.0-0 – < 1.18.3 1.17.11

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
SLES 15 SP4 go1.17 1.17.11-150000.1.37.1 SUSE-SU-2022:2004-1
SLES 15 SP4 go1.18 1.18.3-150000.1.20.1 SUSE-SU-2022:2005-1
SLES 15 SP4 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SLES 15 SP3 go1.17 1.17.11-150000.1.37.1 SUSE-SU-2022:2004-1
SLES 15 SP3 go1.18 1.18.3-150000.1.20.1 SUSE-SU-2022:2005-1
SLES 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SLE Real Time 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SLE HPC 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE Enterprise Storage 7.1 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.17 1.17.11-1.1 openSUSE-SU-2024:12123-1
openSUSE Tumbleweed go1.18 1.18.3-1.1 openSUSE-SU-2024:12124-1
openSUSE Leap 15.5 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
openSUSE Leap 15.4 go1.17 1.17.11-150000.1.37.1 SUSE-SU-2022:2004-1
openSUSE Leap 15.4 go1.18 1.18.3-150000.1.20.1 SUSE-SU-2022:2005-1
openSUSE Leap 15.4 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
openSUSE Leap 15.3 go1.17 1.17.11-150000.1.37.1 SUSE-SU-2022:2004-1
openSUSE Leap 15.3 go1.18 1.18.3-150000.1.20.1 SUSE-SU-2022:2005-1
ReleasePackageFixed inAdvisory
Alpine v3.16 go 1.18.4-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 delve 1.7.2-1.0.1.module+el8.6.0+20703+24a110ad ELSA-2022-17957, ELSA-2022-17956
Oracle Linux 8 go-toolset 1.17.11-1.module+el8.6.0+20703+24a110ad ELSA-2022-17957, ELSA-2022-17956
Oracle Linux 8 golang +6 1.17.11-1.0.1.module+el8.6.0+20703+24a110ad ELSA-2022-17957, ELSA-2022-17956

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib < 1.17.11 · >= 1.18.0-0, < 1.18.3 1.17.11, 1.18.3 GO-2022-0533

Advisories 11

References