{"id":"CVE-2022-29804","aliases":["CVE-2022-29804","GO-2022-0533","BIT-GOLANG-2022-29804"],"related":[],"kind":"vulnerability","state":"published","title":"Path traversal via Clean on Windows in path/filepath","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"On Windows, the filepath.Clean function can convert certain invalid paths to valid, absolute paths, potentially allowing a directory traversal attack.\n\nFor example, Clean(\".\\c:\") returns \"c:\".","format":"markdown","source":"go"},{"lang":"es","text":"En filepath.Clean en path/filepath en Go versiones anteriores a 1.17.11 y en 1.18.x antes de 1.18.3 en Windows, las rutas inválidas como .\\c: podían convertirse en rutas válidas (como c: en este ejemplo).","source":"nvd"}],"published":"2022-07-28T17:25:07.000Z","modified":"2026-06-17T04:40:44.503Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.17.11","status":"affected"},{"type":"semver","introduced":"1.18.0-0","fixed":"1.18.3","status":"affected"}],"vendor":"Go standard library","product":"path/filepath","package":"path/filepath","platforms":["windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.17.11"},{"type":"semver","introduced":"1.18.0-0","status":"affected","fixed":"1.18.3"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.17.11"},{"status":"affected","introduced":"1.18.0","fixed":"1.18.3"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.17.11"},{"type":"semver","introduced":"1.18.0","status":"affected","fixed":"1.18.3"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/cl/401595","tags":["fix","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290","tags":["fix","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/issue/52476","tags":["report","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ","tags":["web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0533","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29804","tags":["web"],"sources":["bitnami"]}],"credits":["Unrud"],"assigner":"Go","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-29804","url":"https://www.cve.org/CVERecord?id=CVE-2022-29804","licence":"CVE Terms of Use","modified":"2024-08-03T06:33:42.804Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0533","url":"https://pkg.go.dev/vuln/GO-2022-0533","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-29804","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29804","licence":"Public domain","modified":"2026-06-17T04:40:44.503Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2022-29804","url":"https://osv.dev/vulnerability/BIT-GOLANG-2022-29804","licence":"Apache-2.0","modified":"2025-05-20T10:02:07.006Z"}],"updatedAt":"2026-11-25T22:58:14.059Z","epss":{"score":0.02392,"percentile":0.84438,"date":"2026-12-01T12:00:22.000Z"}}