ADVISORIES

Go Vulnerability Database

GO-2023-2186

Incorrect detection of reserved device names on Windows in path/filepath

Details

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.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.20.11 (fixed in 1.20.11)
From 1.21.0-0 before 1.21.4 (fixed in 1.21.4)

References