Vulnerability · Published Nov 9, 2023 · Assigned by Go

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

Medium 5.3

In plain English

A medium-severity security flaw in path/filepath from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.1%top 34.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-1.19no fix listedDEBIAN-CVE-2023-45284
Gostdlib1.20.11, 1.21.4GO-2023-2186
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2023-45284
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2023-45284

Affected products (as reported)

VendorProductVersions
Go standard library path/filepath 0 – before 1.20.111.21.0-0 – before 1.21.4

References