Live threats

All CVEs / Golang

CVE-2022-29804Golang Go

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.7%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Aug 10, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.17.11 1.17.11 go get stdlib@v1.17.11
Go stdlib ≥ 1.18.0-0 < 1.18.3 1.18.3 go get stdlib@v1.18.3

Per OSV / GitHub Advisories (GO-2022-0533). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.17.11
golanggo≥ 1.18.0 < 1.18.3

Official sources

References

Links published by the sources. Open them with care.