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
| Vector | AV: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
Affected Products
Alt Linux
Go
Suse