CVE-2023-45284

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

State
Published
Severity
5.3 Medium
Published
Nov 9, 2023
Updated
Sep 3, 2024
Reserved
Oct 6, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
path/filepathGo standard library
  • before 1.20.11Affected
  • 1.21.0-0 to before 1.21.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.