CVE-2021-46340 Denial of service in n/a
A crafted JavaScript input triggers an assertion failure in JerryScript, causing the application to crash and resulting in a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-46340?
CVE-2021-46340 is a medium-severity denial of service vulnerability in Jerryscript Jerryscript, published on 20 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
There is an Assertion 'context_p->stack_top_uint8 == SCAN_STACK_TRY_STATEMENT || context_p->stack_top_uint8 == SCAN_STACK_CATCH_STATEMENT' failed at /parser/js/js-scanner.c(scanner_scan_statement_end) in JerryScript 3.0.0.
Weakness: CWE-617
Which versions are affected by CVE-2021-46340?
It affects 1 product.
Products include Jerryscript Jerryscript.
How do I fix CVE-2021-46340?
No fix has been published for CVE-2021-46340 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-46340 being exploited?
There is no known exploitation of CVE-2021-46340 in the wild and no public exploit code.
Other vulnerabilities in Jerryscript Jerryscript
Sources
Also known as GHSA-wj92-jwcq-3hpf, UBUNTU-CVE-2021-46340.