{"id":"CVE-2023-45283","published":"2023-11-09T16:30:12Z","modified":"2025-02-13T17:13:59Z","title":"Insecure parsing of Windows paths with a \\??\\ prefix in path/filepath","vendor":"Go standard library","product":"path/filepath","tier":"tail","description":{"text":"The filepath package does not recognize paths with a \\??\\ prefix as special. On Windows, a path beginning with \\??\\ is a Root Local Device path equivalent to a path beginning with \\\\?\\. Paths with a \\??\\ prefix may be used to access arbitrary locations on the system. For example, the path \\??\\c:\\x is equivalent to the more common path c:\\x. Before fix, Clean could convert a rooted path such as \\a\\..\\??\\b into the root local device path \\??\\b. Clean will now convert this to .\\??\\b. Similarly, Join(\\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \\??\\b. Join will now convert this to \\.\\??\\b. In addition, with fix, IsAbs now correctly reports paths beginning with \\??\\ as absolute, and VolumeName correctly reports the \\??\\ prefix as a volume name. UPDATE: Go 1.20.11 and Go 1.21.4 inadvertently changed the definition of the volume name in Windows paths starting with \\?, resulting in filepath.Clean(\\?\\c:) returning \\?\\c: rather than \\?\\c:\\ (among other effects). The previous behavior has been restored.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03345,"percentile":0.88963,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/63713","tags":[]},{"url":"https://go.dev/cl/540277","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY","tags":[]},{"url":"https://go.dev/issue/64028","tags":[]},{"url":"https://go.dev/cl/541175","tags":[]},{"url":"https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2023-2185","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2023/12/05/2","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20231214-0008/","tags":[]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":17.79}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"path/filepath","versions":["< 1.20.11",">= 1.21.0-0, < 1.21.4"]},{"vendor":"Go standard library","product":"internal/safefilepath","versions":["< 1.20.11",">= 1.21.0-0, < 1.21.4"]},{"vendor":"Go standard library","product":"path/filepath","versions":[">= 1.20.11, < 1.20.12",">= 1.21.4, < 1.21.5"]}],"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.20.11",">=1.21.0-0, <1.21.4",">=1.20.11, <1.20.12",">=1.21.4, <1.21.5"],"patched":["1.20.11","1.21.4","1.20.12","1.21.5"],"from":["GO-2023-2185"],"provenance":"source"}],"summary":{"text":"The filepath package in the Go standard library mishandles Windows paths that begin with the \\??\\ prefix, which it does not treat as special even though it denotes a Root Local Device path equivalent to \\\\?\\, so functions such as Clean, Join, IsAbs and VolumeName can mis-parse or incorrectly normalize them. An attacker able to supply path input to an application that uses these functions on Windows could craft a \\??\\ path to reach arbitrary locations on the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:30Z"},"euvd":{"id":"EUVD-2023-49584","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-39325","published":"2023-10-11","fixed":"1.21.3","kev":false,"link":{"from":"CVE-2023-39325","to":"CVE-2023-45283","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.20.10","toFixed":"1.20.11","daysApart":29}]}},{"cve":"CVE-2023-45284","published":"2023-11-09","fixed":"1.21.4","kev":false},{"cve":"CVE-2023-39326","published":"2023-12-06","fixed":"1.21.5","kev":false,"link":{"from":"CVE-2023-45283","to":"CVE-2023-39326","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.20.11","toFixed":"1.20.12","daysApart":27}]}},{"cve":"CVE-2023-45283","published":"2023-11-09","fixed":"1.21.5","kev":false},{"cve":"CVE-2023-45289","published":"2024-03-05","fixed":"1.22.1","kev":false},{"cve":"CVE-2023-45290","published":"2024-03-05","fixed":"1.22.1","kev":false},{"cve":"CVE-2024-24783","published":"2024-03-05","fixed":"1.22.1","kev":false}],"package":"Go:stdlib"}}