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

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.39%, higher than 84% of CVEs (2026-12-01)
- Published: 2022-07-28T17:25:07.000Z
- Modified: 2026-06-17T04:40:44.503Z
- Also known as: GO-2022-0533, BIT-GOLANG-2022-29804
- Weaknesses: CWE-22
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- path/filepath: before 1.17.11; from 1.18.0-0 before 1.18.3
- stdlib (Go): before 1.17.11; from 1.18.0-0 before 1.18.3
- golang go: before 1.17.11; from 1.18.0 before 1.18.3
- golang (Bitnami): before 1.17.11; from 1.18.0 before 1.18.3

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/401595> (fix, web)
- <https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290> (fix, web)
- <https://go.dev/issue/52476> (report, web)
- <https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ> (web)
- <https://pkg.go.dev/vuln/GO-2022-0533> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29804> (web)

## Sources

- CVE List: [CVE-2022-29804](https://www.cve.org/CVERecord?id=CVE-2022-29804), CVE Terms of Use, modified 2024-08-03
- Go Vulnerability Database: [GO-2022-0533](https://pkg.go.dev/vuln/GO-2022-0533), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-29804](https://nvd.nist.gov/vuln/detail/CVE-2022-29804), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2022-29804](https://osv.dev/vulnerability/BIT-GOLANG-2022-29804), Apache-2.0, modified 2025-05-20

---

Page: https://cve.day/CVE-2022-29804 · Whole record: https://cve.day/CVE-2022-29804.json · Rebuilt by cve.day 2026-11-25T22:58:14.059Z
