{"id":"CVE-2022-41722","state":"PUBLISHED","title":"Path traversal on Windows in path/filepath","description":"A path traversal vulnerability exists in filepath.Clean on Windows. On 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. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\".","publishedAt":"2023-02-28T17:19:41.324Z","updatedAt":"2025-03-07T17:58:57.055Z","severity":null,"assigner":"Go","products":["Go standard library path/filepath"],"affected":[{"vendor":"Go standard library","product":"path/filepath","packageName":"path/filepath","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.19.6","versionType":"semver"},{"version":"1.20.0-0","status":"affected","lessThan":"1.20.1","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","platforms":["windows"],"programRoutines":[{"name":"Clean"},{"name":"Abs"},{"name":"Dir"},{"name":"EvalSymlinks"},{"name":"Glob"},{"name":"IsLocal"},{"name":"Join"},{"name":"Rel"},{"name":"Walk"},{"name":"WalkDir"}]}],"references":["https://go.dev/issue/57274","https://go.dev/cl/468123","https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E","https://pkg.go.dev/vuln/GO-2023-1568"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:37.819Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/41xxx/CVE-2022-41722.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-41722","state":"PUBLISHED","datePublished":"2023-02-28T17:19:41.324Z","dateUpdated":"2025-03-07T17:58:57.055Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2022-09-28T17:00:06.610Z"},"containers":{"cna":{"title":"Path traversal on Windows in path/filepath","descriptions":[{"lang":"en","value":"A path traversal vulnerability exists in filepath.Clean on Windows. On 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. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\"."}],"affected":[{"vendor":"Go standard library","product":"path/filepath","packageName":"path/filepath","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.19.6","versionType":"semver"},{"version":"1.20.0-0","status":"affected","lessThan":"1.20.1","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","platforms":["windows"],"programRoutines":[{"name":"Clean"},{"name":"Abs"},{"name":"Dir"},{"name":"EvalSymlinks"},{"name":"Glob"},{"name":"IsLocal"},{"name":"Join"},{"name":"Rel"},{"name":"Walk"},{"name":"WalkDir"}]}],"references":[{"url":"https://go.dev/issue/57274"},{"url":"https://go.dev/cl/468123"},{"url":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"},{"url":"https://pkg.go.dev/vuln/GO-2023-1568"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted\nDirectory (\"Path Traversal\")\n"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-06-12T19:05:50.152Z"},"credits":[{"lang":"en","value":"RyotaK (https://ryotak.net)"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://go.dev/issue/57274","tags":["x_transferred"]},{"url":"https://go.dev/cl/468123","tags":["x_transferred"]},{"url":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1568","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T12:49:43.602Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-07T17:58:38.218567Z","id":"CVE-2022-41722","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-07T17:58:57.055Z"}}]}}}