UNKNOWN Go

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

GO-2023-2186 · BIT-golang-2023-45284 · CVE-2023-45284

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes