Vulnerability · Published Aug 9, 2022 · Assigned by Go

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

High 7.5

In plain English

A high-severity security flaw in path/filepath from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.4% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.4%top 16.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gostdlib1.17.11, 1.18.3GO-2022-0533

Affected products (as reported)

VendorProductVersions
Go standard library path/filepath 0 – before 1.17.111.18.0-0 – before 1.18.3

References