GO-2023-2186

Source
https://pkg.go.dev/vuln/GO-2023-2186
Import Source
https://vuln.go.dev/ID/GO-2023-2186.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-2186
Aliases
Downstream
Related
Published
2023-11-08T22:42:19Z
Modified
2026-02-04T03:56:59Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2023-2186"
}
References

Affected packages

Go / stdlib

Package

Name
stdlib
View open source insights on deps.dev
Purl
pkg:golang/stdlib

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.20.11
Introduced
1.21.0-0
Fixed
1.21.4

Ecosystem specific

{
    "imports": [
        {
            "path": "path/filepath",
            "symbols": [
                "IsLocal"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2023-2186.json"