Skip to content

Commit

Permalink
data/reports: add GO-2023-2186.yaml
Browse files Browse the repository at this point in the history
Aliases: CVE-2023-45284

Updates #2186

Change-Id: I11507f1ac98499edc4d2a4c3cd3e1a4f410befa9
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/540718
Reviewed-by: Damien Neil <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
tatianab committed Nov 8, 2023
1 parent bfa4654 commit a01c862
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 0 deletions.
73 changes: 73 additions & 0 deletions data/cve/v5/GO-2023-2186.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
}
65 changes: 65 additions & 0 deletions data/osv/GO-2023-2186.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
29 changes: 29 additions & 0 deletions data/reports/GO-2023-2186.yaml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit a01c862

Please sign in to comment.