{"id":"GO-2022-0533","summary":"Path traversal via Clean on Windows in path/filepath","details":"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:\".","aliases":["BIT-golang-2022-29804","CVE-2022-29804"],"modified":"2026-03-17T04:21:00.063565Z","published":"2022-07-28T17:25:07Z","database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2022-0533"},"references":[{"type":"FIX","url":"https://go.dev/cl/401595"},{"type":"FIX","url":"https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"},{"type":"REPORT","url":"https://go.dev/issue/52476"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"}],"affected":[{"package":{"name":"stdlib","ecosystem":"Go","purl":"pkg:golang/stdlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.11"},{"introduced":"1.18.0-0"},{"fixed":"1.18.3"}]}],"ecosystem_specific":{"imports":[{"path":"path/filepath","goos":["windows"],"symbols":["Clean"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0533.json"}}],"schema_version":"1.7.5","credits":[{"name":"Unrud"}]}