CVE-2021-23954 Memory corruption in Firefox
Type confusion in JavaScript switch statements allows memory corruption, potentially leading to code execution or crashes in Firefox and Thunderbird.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-23954?
CVE-2021-23954 is a high-severity memory corruption vulnerability in Mozilla Firefox, published on 26 Feb 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Using the new logical assignment operators in a JavaScript switch statement could have caused a type confusion, leading to a memory corruption and a potentially exploitable crash. This vulnerability affects Firefox < 85, Thunderbird < 78.7, and Firefox ESR < 78.7.
Weakness: CWE-843
Which versions are affected by CVE-2021-23954?
It affects 3 products.
Products include Mozilla Firefox, Mozilla Firefox Esr, Mozilla Thunderbird.
How do I fix CVE-2021-23954?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-23954 being exploited?
There is no known exploitation of CVE-2021-23954 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as DEBIAN-CVE-2021-23954, GHSA-5hq3-8hcw-572m, UBUNTU-CVE-2021-23954.