5.3Medium

CVE-2023-45284Incorrect detection of reserved device names on Windows in path/filepath

Go standard library path/filepath; golang go Published: (3 years ago)

Description

On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as "COM1 ", and reserved names "COM" and "LPT" followed by superscript 1, 2, or 3, are incorrectly reported as local. With fix, IsLocal now correctly reports these names as non-local.

Weakness (CWE): CWE-41

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library path/filepath < 1.20.11, 1.21.0-0 – < 1.21.4
golang go < 1.20.11, 1.21.0-0 – < 1.21.4

References and patches