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'