CVE-2023-45284
MEDIUM 5.3CVSS 3.1Incorrect detection of reserved device names on Windows in path/filepath
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.
- Published
- 9 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Also known as
- BIT-golang-2023-45284GO-2023-2186
- Sources
- NVDJSONOSV GO-2023-2186JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.20.11 | 1.20.11 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.21.0-0, < 1.21.4 | 1.21.4 |
| OSV | Go | stdlib | < 1.20.11; >= 1.21.0-0, < 1.21.4 | 1.20.11, 1.21.4 |
References
- https://go.dev/cl/540277 · Issue Tracking, Vendor Advisory, FIX
- https://go.dev/issue/63713 · Issue Tracking, Vendor Advisory, REPORT
- https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY · Issue Tracking, Mailing List, Vendor Advisory, WEB
- https://pkg.go.dev/vuln/GO-2023-2186 · Issue Tracking, Vendor Advisory
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 9 Nov 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Nov 2023)