{"answers":{"affected":"3 open source packages ship an affected version, including boa_engine.","exploited":"There is no known exploitation of CVE-2024-43367 in the wild and no public exploit code.","fix":"Upgrade boa_engine to 0.19.0 or later.","what":"CVE-2024-43367 is a high-severity denial of service vulnerability in boa-dev boa, published on 15 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-43367 and fix it if it is affected.\n\nWhat it is: CVE-2024-43367 is a high-severity denial of service vulnerability in boa-dev boa, published on 15 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-43367 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- boa_engine (crates.io): affected from 0.16; fixed in 0.19.0\n- boa_engine (crates.io): affected from 0.16; fixed in 0.19.0\n- boa_engine (crates.io): affected from 0.16.0; fixed in 0.19.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-43367/ (Markdown: https://insights.sbomify.com/CVE-2024-43367/index.md)","id":"CVE-2024-43367","markdown":"https://insights.sbomify.com/CVE-2024-43367/index.md","name":"CVE-2024-43367","record":{"aliases":["GHSA-f67q-wr6w-23jq","RUSTSEC-2024-0444"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust JavaScript engine","requires_auth":"none","summary":"An attacker can cause a denial of service in applications using the Boa JavaScript engine by triggering an uncaught exception via crafted async generator scripts.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"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.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Boa has an uncaught exception when transitioning the state of `AsyncGenerator` objects","id":"CVE-2024-43367","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"Trix has a Cross-Site Scripting (XSS) vulnerability on copy \u0026 paste","id":"CVE-2024-43368"},"packages":[{"ecosystem":"crates.io","fixed":["0.19.0"],"introduced":["0.16"],"last_affected":[],"package":"boa_engine","purl":null,"source":"GHSA-f67q-wr6w-23jq"},{"ecosystem":"crates.io","fixed":["0.19.0"],"introduced":["0.16"],"last_affected":[],"package":"boa_engine","purl":"pkg:cargo/boa_engine","source":"GHSA-f67q-wr6w-23jq"},{"ecosystem":"crates.io","fixed":["0.19.0"],"introduced":["0.16.0"],"last_affected":[],"package":"boa_engine","purl":"pkg:cargo/boa_engine","source":"RUSTSEC-2024-0444"}],"prev":{"headline":"zkvyper ignored loop range bounds","id":"CVE-2024-43366"},"products":["boa"],"published":"2024-08-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-20","vendors":["boa-dev"]},"summary":"An attacker can cause a denial of service in applications using the Boa JavaScript engine by triggering an uncaught exception via crafted async generator scripts.","url":"https://insights.sbomify.com/CVE-2024-43367/"}