PT-2024-30530 · Boa · Boa

Arai-A

+1

·

Published

2024-08-14

·

Updated

2024-08-19

·

CVE-2024-43367

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Boa versions 0.16 through 0.19.0
Description A wrong assumption in Boa's implementation of AsyncGenerator can cause an uncaught exception on certain scripts. This occurs because the state of an AsyncGenerator object is assumed not to change while resolving a promise created by methods such as %AsyncGeneratorPrototype%.next, %AsyncGeneratorPrototype%.return, or %AsyncGeneratorPrototype%.throw. However, a carefully constructed code can trigger a state transition from a getter method for the promise's then property, causing the engine to fail an assertion of this assumption and resulting in an uncaught exception. This could be used to create a Denial Of Service attack in applications that run arbitrary ECMAScript code provided by an external user.
Recommendations For versions 0.16 through 0.19.0, upgrade to version 0.19.0 to correctly handle this case. For users unable to upgrade to the patched version, use std::panic::catch unwind to ensure any exceptions caused by the engine do not impact the availability of the main application.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2024-43367
GHSA-F67Q-WR6W-23JQ
GHSA-G38C-WH3C-5H9R
RUSTSEC-2024-0444

Affected Products

Boa