{"id":"GO-2023-1568","summary":"Path traversal on Windows in path/filepath","details":"A path traversal vulnerability exists in filepath.Clean on Windows.\n\nOn Windows, the filepath.Clean function could transform an invalid path such as \"a/../c:/b\" into the valid path \"c:\\b\". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack.\n\nAfter fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\".","aliases":["BIT-golang-2022-41722","CVE-2022-41722"],"modified":"2026-02-04T02:54:08.789114Z","published":"2023-02-16T19:49:19Z","related":["CGA-725c-vc33-7hwf"],"database_specific":{"url":"https://pkg.go.dev/vuln/GO-2023-1568","review_status":"REVIEWED"},"references":[{"type":"REPORT","url":"https://go.dev/issue/57274"},{"type":"FIX","url":"https://go.dev/cl/468123"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"}],"affected":[{"package":{"name":"stdlib","ecosystem":"Go","purl":"pkg:golang/stdlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.6"},{"introduced":"1.20.0-0"},{"fixed":"1.20.1"}]}],"ecosystem_specific":{"imports":[{"path":"path/filepath","symbols":["Abs","Clean","Dir","EvalSymlinks","Glob","IsLocal","Join","Rel","Walk","WalkDir"],"goos":["windows"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2023-1568.json"}}],"schema_version":"1.7.3","credits":[{"name":"RyotaK (https://ryotak.net)"}]}