All reports
Unknown

Path traversal via Clean on Windows in path/filepath

Affected versions

Affected versions
<1.17.11 || >=1.18.0-0 <1.18.3
Fixed version
1.17.11 · 1.18.3

Exploitation

CVE-2022-29804

Probability of exploitation in the next 30 days: 2.39%

FIRST EPSS · 2026-11-19

Description

On Windows, the filepath.Clean function can convert certain invalid paths to valid, absolute paths, potentially allowing a directory traversal attack.

For example, Clean(".\c:") returns "c:".

Links

Credits

  • Unrud