Deno improperly handles resizable ArrayBuffer
Description
Published to the GitHub Advisory Database
Mar 23, 2023
Reviewed
Mar 23, 2023
Published by the National Vulnerability Database
Mar 24, 2023
Last updated
May 4, 2023
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. A future version of Deno 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.References