# CVE-2024-43367: Boa has an uncaught exception when transitioning the state of `AsyncGenerator` objects

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-02)
- Published: 2024-08-14T12:00:00.000Z
- Modified: 2026-10-12T18:00:06.811Z
- Also known as: GHSA-f67q-wr6w-23jq, RUSTSEC-2024-0444
- Related: CVE-2024-43357
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- boa-dev boa: >= 0.16, < 0.19.0
- boa boa: up to 0.16; up to 0.19.0
- boa_engine (crates.io): from 0.16 before 0.19.0; from 0.16.0 before 0.19.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`

## References

- <https://github.com/boa-dev/boa/security/advisories/GHSA-f67q-wr6w-23jq> (web)
- <https://github.com/tc39/ecma262/security/advisories/GHSA-g38c-wh3c-5h9r> (web)
- <https://github.com/boa-dev/boa/commit/69ea2f52ed976934bff588d6b566bae01be313f7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43367> (advisory)
- <https://github.com/boa-dev/boa> (package)
- <https://rustsec.org/advisories/RUSTSEC-2024-0444.html> (advisory, web)
- <https://crates.io/crates/boa_engine> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43357> (web)

## Sources

- CVE List: [CVE-2024-43367](https://www.cve.org/CVERecord?id=CVE-2024-43367), CVE Terms of Use, modified 2024-08-20
- GitHub Advisory Database: [GHSA-f67q-wr6w-23jq](https://github.com/advisories/GHSA-f67q-wr6w-23jq), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2024-0444](https://rustsec.org/advisories/RUSTSEC-2024-0444.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2024-43367](https://nvd.nist.gov/vuln/detail/CVE-2024-43367), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-43367 · Whole record: https://cve.day/CVE-2024-43367.json · Rebuilt by cve.day 2026-11-25T22:58:44.427Z
