CVE-2022-45406 Use after free in Firefox

Critical 9.8 Published Updated

A use-after-free vulnerability in Firefox and Thunderbird allows attackers to cause a crash or potentially execute code via crafted JavaScript.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-45406?

CVE-2022-45406 is a critical use after free vulnerability in Mozilla Firefox, published on 22 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

If an out-of-memory condition occurred when creating a JavaScript global, a JavaScript realm may be deleted while references to it lived on in a BaseShape. This could lead to a use-after-free causing a potentially exploitable crash. This vulnerability affects Firefox ESR < 102.5, Thunderbird < 102.5, and Firefox < 107.

Weakness: CWE-416

Which versions are affected by CVE-2022-45406?

It affects 3 products.

Products include Mozilla Firefox, Mozilla Firefox Esr, Mozilla Thunderbird.

How do I fix CVE-2022-45406?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-45406 being exploited?

There is no known exploitation of CVE-2022-45406 in the wild and no public exploit code.

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-45406, GHSA-h3mp-j53v-44vx, UBUNTU-CVE-2022-45406.

Is CVE-2022-45406 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free