{"schema_version":"1.9.0","id":"BIT-golang-2022-41722","published":"2024-03-06T10:57:57.994Z","modified":"2026-09-08T08:47:48.422503697Z","aliases":["CVE-2022-41722","GO-2023-1568"],"summary":"Path traversal on Windows in path/filepath","details":"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":[{"package":{"name":"golang","ecosystem":"Bitnami","purl":"pkg:bitnami/golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.6"},{"introduced":"1.20.0"},{"fixed":"1.20.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2022-41722.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}],"references":[{"type":"REPORT","url":"https://go.dev/cl/468123"},{"type":"REPORT","url":"https://go.dev/issue/57274"},{"type":"ADVISORY","url":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2023-1568"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41722"}],"database_specific":{"cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","cpe:2.3:a:golang:go:1.20.0:-:*:*:*:*:*:*"],"severity":"High"}}