{"id":"CVE-2024-43367","published":"2024-08-15T20:38:23Z","modified":"2024-08-20T15:45:24Z","title":"Boa has an uncaught exception when transitioning the state of `AsyncGenerator` objects","vendor":"boa-dev","product":"boa","tier":"tail","description":{"text":"Boa is an embeddable and experimental Javascript engine written in Rust. Starting in version 0.16 and prior to version 0.19.0, a wrong assumption made when handling ECMAScript's `AsyncGenerator` operations can cause an uncaught exception on certain scripts. Boa's implementation of `AsyncGenerator` makes the assumption that the state of an `AsyncGenerator` object cannot change while resolving a promise created by methods of `AsyncGenerator` such as `%AsyncGeneratorPrototype%.next`, `%AsyncGeneratorPrototype%.return`, or `%AsyncGeneratorPrototype%.throw`. However, a carefully constructed code could trigger a state transition from a getter method for the promise's `then` property, which causes the engine to fail an assertion of this assumption, causing 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. Version 0.19.0 is patched to correctly handle this case. Users unable to upgrade to the patched version would want to use `std::panic::catch_unwind` to ensure any exceptions caused by the engine don't impact the availability of the main application.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00597,"percentile":0.49517,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/boa-dev/boa/security/advisories/GHSA-f67q-wr6w-23jq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tc39/ecma262/security/advisories/GHSA-g38c-wh3c-5h9r","tags":["x_refsource_MISC"]},{"url":"https://github.com/boa-dev/boa/commit/69ea2f52ed976934bff588d6b566bae01be313f7","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.9},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"boa-dev","affectedVersions":[{"vendor":"boa-dev","product":"boa","versions":[">= 0.16, < 0.19.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-08-20T15:42:47.405347Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"boa_engine","vulnerableRanges":[">=0.16, <0.19.0",">=0.16.0, <0.19.0"],"patched":["0.19.0"],"from":["GHSA-f67q-wr6w-23jq","RUSTSEC-2024-0444"],"provenance":"source"}],"summary":{"text":"A flaw in the AsyncGenerator implementation of Boa, an embeddable JavaScript engine written in Rust, causes an uncaught exception when the state of an AsyncGenerator object is changed during promise resolution. An attacker who can get the engine to run crafted ECMAScript code, which is possible in applications that execute code supplied by external users, can trigger a denial of service over the network with no privileges or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:33Z"},"euvd":{"id":"EUVD-2024-2567","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tc39-ecma262-cve-2024-43357","parents":[{"from":"CVE-2024-43357","to":"CVE-2024-43367","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-f67q-wr6w-23jq","via":"related"},{"kind":"osv-related","provenance":"source","id":"RUSTSEC-2024-0444","via":"related"},{"kind":"osv-related","provenance":"source","id":"RUSTSEC-2024-0444","via":"reference","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43357"}]}]}}