Skip to content

CVE-2022-29804 Path traversal via Clean on Windows in path/filepath

HighCVSS 7.5 EPSS 2.4%
Published
Updated
Exploit status
No public exploit known

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

ProductAffected versionsFixed in
stdlib(Go) < 1.17.11 1.17.11
stdlib(Go) >= 1.18.0-0, < 1.18.3 1.18.3
path/filepath(Go) < 1.17.11 1.17.11
path/filepath(Go) >= 1.18.0-0, < 1.18.3 1.18.3
golang go < 1.17.11 1.17.11
golang go >= 1.18.0, < 1.18.3 1.18.3
alpine/go(Alpine:v3.16) >= 1.18.0, < 1.18.4-r0 1.18.4-r0

References