Skip to content

Improper handling of resizable ArrayBuffer in async built-in functions

Critical
lucacasonato published GHSA-c25x-cm9x-qqgx Mar 23, 2023

Package

Deno

Affected versions

1.32.0

Patched versions

>= 1.32.1
cargo deno_runtime (Rust)
0.102.0
>= 0.103.0
cargo serde_v8 (Rust)
0.87.0
>= 0.88.0

Description

Impact

Resizable ArrayBuffers passed to asynchronous native functions that are shrunk during the asynchronous operation could result in an out-of-bound read/write.

It is unlikely that this has been exploited in the wild, as the only version affected is Deno 1.32.0.

Deno Deploy users are not affected.

Patches

The problem has been resolved by disabling resizable ArrayBuffers temporarily in Deno 1.32.1. Deno 1.32.2 will re-enable resizable ArrayBuffers with a proper fix.

Workarounds

Upgrade to Deno 1.32.1, or run with --v8-flags=--no-harmony-rab-gsab to disable resizable ArrayBuffers.

Severity

Critical
10.0
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CVE ID

CVE-2023-28445

Credits