Advisory

GO-2023-2186

Also known as: BIT-golang-2023-45284, CVE-2023-45284

Summary

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.

Severity

Not rated by the source.

Dates

Published
2023-11-08 22:42 UTC
Modified
2026-02-04 03:56 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.20.11, introduced 1.21.0-0, fixed 1.21.4 (semver)

Fixed versions

1.20.11, 1.21.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences