Skip to content
Fencer Vulns
high 7.5

CVE-2022-29804 json

Path traversal via Clean on Windows in path/filepath

published 2022-07-28 4 y ago modified 2026-06-17 4 mo ago also BIT-golang-2022-29804 , EUVD-2022-34125 , GO-2022-0533

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.4%
EPSS 2.4% chance of exploitation in 30 days, percentile 84%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami golang 1.17.11, 1.18.3
  • go stdlib 1.17.11, 1.18.3
  • Go standard library path/filepath 1.17.11, 1.18.3
  • go1.18-openssl SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Real Time 15 SP3 +6 more 1.18.10.1-150000.1.9.1
  • go1.18 SLE Module for Development Tools 15 SP4, SLE Module for Development Tools 15 SP3, openSUSE Leap 15.4 +1 more 1.18.3-150000.1.20.1
  • go1.17 SLE Module for Development Tools 15 SP4, SLE Module for Development Tools 15 SP3, openSUSE Leap 15.4 +1 more 1.17.11-150000.1.37.1

suse advisories SUSE-SU-2023:2312-1SUSE-SU-2022:2005-1SUSE-SU-2022:2004-1

  • go1.17 openSUSE Tumbleweed 1.17.11-1.1
  • go1.18 openSUSE Tumbleweed 1.18.3-1.1

opensuse advisories openSUSE-SU-2024:12123-1openSUSE-SU-2024:12124-1

  • go Alpine 3.16 1.18.4-r0

alpine advisories ALPINE-CVE-2022-29804

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Exploit prediction

2.39% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami golang
<1.17.11
>=1.18.0, <1.18.3
1.17.11
1.18.3
go stdlib
<1.17.11
>=1.18.0-0, <1.18.3
1.17.11
1.18.3

Affected products

  • Go standard library path/filepath

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.