Go · Go · CVE-2022-29804
**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.