PT-2022-19839 · Go+2 · Go+2

Unrud

·

Published

2022-06-07

·

Updated

2024-06-15

·

CVE-2022-29804

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Go versions prior to 1.17.11 Go versions prior to 1.18.3
Description The issue concerns the incorrect conversion of certain invalid paths to valid, absolute paths in the filepath.Clean function on Windows, potentially allowing a directory traversal attack. For example, the function Clean can convert an invalid path like .c: to a valid, absolute path c:.
Recommendations For Go versions prior to 1.17.11, update to version 1.17.11 or later to resolve the issue. For Go versions prior to 1.18.3, update to version 1.18.3 or later to resolve the issue. As a temporary workaround, consider restricting the use of the filepath.Clean function on Windows systems until a patch is applied.

Exploit

Fix

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2022-2036
ALT-PU-2022-2041
ALT-PU-2022-2873
ALT-PU-2023-1205
AZL-79118
BIT-GOLANG-2022-29804
CVE-2022-29804
GO-2022-0533
OESA-2022-1857
OPENSUSE-SU-2022_2004-1
OPENSUSE-SU-2022_2005-1
OPENSUSE-SU-2024:12123-1
OPENSUSE-SU-2024:12124-1
SUSE-SU-2022:2004-1
SUSE-SU-2022:2005-1
SUSE-SU-2022_2004-1
SUSE-SU-2022_2005-1
SUSE-SU-2023:2312-1

Affected Products

Alt Linux
Go
Suse