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
Published
2023-11-08T22:42:19Z
Modified
2024-10-22T05:29:13.273595Z
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.

References

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown 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"
            ]
        }
    ]
}