CVE-2023-28445: Deno Deno Improperly Handles Resizable ArrayBuffer Vulnerability
CRITICALCVE-2023-28445 is a CRITICAL (CVSS 9.9) deno improperly handles resizable arraybuffer vulnerability (CWE-125: Out-of-bounds Read) affecting Deno libraries in the crates.io ecosystem. The issue involves deno improperly handles resizable arraybuffer. Remediation is available by upgrading affected packages to version 1.32.1, 0.88.0, 0.103.0.
CVE-2023-28445 at a Glance
Security Impact
CVSS: 9.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2023-28445
To remediate this vulnerability, upgrade all affected Deno dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Deno to 1.32.1
Upgrade serde_v8 to 0.88.0
Upgrade deno_runtime to 0.103.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Deno
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-28445, inspect your project dependencies for Deno:
inspect dependencies for Deno
Analyze the terminal output to locate any version of Deno in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.32.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Deno, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-28445 Affected Deno Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Deno
|
crates.io |
≥ 1.32.0
< 1.32.1
All 1 versions
1.32.0
|
1.32.1
|
|
serde_v8
|
crates.io |
≥ 0.87.0
< 0.88.0
All 1 versions
0.87.0
|
0.88.0
|
|
deno_runtime
|
crates.io |
≥ 0.102.0
< 0.103.0
All 1 versions
0.102.0
|
0.103.0
|
References
Frequently Asked Questions
What is CVE-2023-28445?
Which Deno versions are affected?
What version fixes CVE-2023-28445?
Is Deno affected?
Is serde_v8 affected?
What is the CVSS score of CVE-2023-28445?
What CWE is associated with CVE-2023-28445?
How can I check crates.io dependencies for CVE-2023-28445?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c25x-cm9x-qqgx",
"modified" : "2023-05-01T21:25:28Z",
"published" : "2023-03-23T23:13:25Z",
"aliases" : [ "CVE-2023-28445" ],
"summary" : "Deno improperly handles resizable ArrayBuffer",
"details" : "### Impact\n\n[Resizable ArrayBuffers](https://github.com/tc39/proposal-resizablearraybuffer) passed to asynchronous native functions that are shrunk during the asynchronous operation could result in an out-of-bound read/write.\n\nIt is unlikely that this has been exploited in the wild, as the only version affected is Deno 1.32.0.\n\nDeno Deploy users are not affected.\n\n### Patches\n\nThe problem has been resolved by disabling resizable ArrayBuffers temporarily in Deno 1.32.1. A future version of Deno will re-enable resizable ArrayBuffers with a proper fix.\n\n### Workarounds\n\nUpgrade to Deno 1.32.1, or run with `--v8-flags=--no-harmony-rab-gsab` to disable resizable ArrayBuffers.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "Deno"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.32.0"
}, {
"fixed" : "1.32.1"
} ]
} ],
"versions" : [ "1.32.0" ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "serde_v8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.87.0"
}, {
"fixed" : "0.88.0"
} ]
} ],
"versions" : [ "0.87.0" ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "deno_runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.102.0"
}, {
"fixed" : "0.103.0"
} ]
} ],
"versions" : [ "0.102.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/security/advisories/GHSA-c25x-cm9x-qqgx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-28445"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/pull/18395"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/pull/18452"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/denoland/deno"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/releases/tag/v1.32.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125", "CWE-787" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-23T23:13:25Z",
"nvd_published_at" : "2023-03-24T00:15:00Z"
}
}