{"schema_version":"1.7.3","id":"GO-2022-0533","published":"2022-07-28T17:25:07Z","modified":"2024-05-20T16:03:47Z","aliases":["BIT-golang-2022-29804","CVE-2022-29804"],"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:\".","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":[{"goos":["windows"],"path":"path/filepath","symbols":["Clean"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0533.json"}}],"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"}],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2022-0533"},"credits":[{"name":"Unrud"}]}