From a01c8628d131c8532f9cfcb073bfbcbe96b2ac6f Mon Sep 17 00:00:00 2001 From: Tatiana Bradley Date: Wed, 8 Nov 2023 12:20:53 -0500 Subject: [PATCH] data/reports: add GO-2023-2186.yaml Aliases: CVE-2023-45284 Updates golang/vulndb#2186 Change-Id: I11507f1ac98499edc4d2a4c3cd3e1a4f410befa9 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/540718 Reviewed-by: Damien Neil LUCI-TryBot-Result: Go LUCI --- data/cve/v5/GO-2023-2186.json | 73 ++++++++++++++++++++++++++++++++++ data/osv/GO-2023-2186.json | 65 ++++++++++++++++++++++++++++++ data/reports/GO-2023-2186.yaml | 29 ++++++++++++++ 3 files changed, 167 insertions(+) create mode 100644 data/cve/v5/GO-2023-2186.json create mode 100644 data/osv/GO-2023-2186.json create mode 100644 data/reports/GO-2023-2186.yaml diff --git a/data/cve/v5/GO-2023-2186.json b/data/cve/v5/GO-2023-2186.json new file mode 100644 index 00000000..30420a2d --- /dev/null +++ b/data/cve/v5/GO-2023-2186.json @@ -0,0 +1,73 @@ +{ + "dataType": "CVE_RECORD", + "dataVersion": "5.0", + "cveMetadata": { + "cveId": "CVE-2023-45284" + }, + "containers": { + "cna": { + "providerMetadata": { + "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" + }, + "title": "Incorrect detection of reserved device names on Windows in path/filepath", + "descriptions": [ + { + "lang": "en", + "value": "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." + } + ], + "affected": [ + { + "vendor": "Go standard library", + "product": "path/filepath", + "collectionURL": "https://pkg.go.dev", + "packageName": "path/filepath", + "versions": [ + { + "version": "0", + "lessThan": "1.20.11", + "status": "affected", + "versionType": "semver" + }, + { + "version": "1.21.0-0", + "lessThan": "1.21.4", + "status": "affected", + "versionType": "semver" + } + ], + "programRoutines": [ + { + "name": "IsLocal" + } + ], + "defaultStatus": "unaffected" + } + ], + "problemTypes": [ + { + "descriptions": [ + { + "lang": "en", + "description": "CWE-41: Improper Resolution of Path Equivalence" + } + ] + } + ], + "references": [ + { + "url": "https://go.dev/issue/63713" + }, + { + "url": "https://go.dev/cl/540277" + }, + { + "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY" + }, + { + "url": "https://pkg.go.dev/vuln/GO-2023-2186" + } + ] + } + } +} \ No newline at end of file diff --git a/data/osv/GO-2023-2186.json b/data/osv/GO-2023-2186.json new file mode 100644 index 00000000..0bca40e9 --- /dev/null +++ b/data/osv/GO-2023-2186.json @@ -0,0 +1,65 @@ +{ + "schema_version": "1.3.1", + "id": "GO-2023-2186", + "modified": "0001-01-01T00:00:00Z", + "published": "0001-01-01T00:00:00Z", + "aliases": [ + "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.\n\nReserved 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.\n\nWith fix, IsLocal now correctly reports these names as non-local.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.20.11" + }, + { + "introduced": "1.21.0-0" + }, + { + "fixed": "1.21.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "path/filepath", + "symbols": [ + "IsLocal" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/63713" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/540277" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-2186" + } +} \ No newline at end of file diff --git a/data/reports/GO-2023-2186.yaml b/data/reports/GO-2023-2186.yaml new file mode 100644 index 00000000..60416552 --- /dev/null +++ b/data/reports/GO-2023-2186.yaml @@ -0,0 +1,29 @@ +id: GO-2023-2186 +modules: + - module: std + versions: + - fixed: 1.20.11 + - introduced: 1.21.0-0 + fixed: 1.21.4 + vulnerable_at: 1.21.3 + packages: + - package: path/filepath + symbols: + - IsLocal +summary: Incorrect detection of reserved device names on Windows in path/filepath +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. +references: + - report: https://go.dev/issue/63713 + - fix: https://go.dev/cl/540277 + - web: https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY +cve_metadata: + id: CVE-2023-45284 + cwe: 'CWE-41: Improper Resolution of Path Equivalence'