CVE-2022-1802 Code injection in Firefox

High 8.8 Published Updated

Prototype pollution in Firefox allows attackers to execute arbitrary JavaScript code in a privileged context.

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-2022-1802?

CVE-2022-1802 is a high-severity code injection vulnerability in Mozilla Firefox, published on 22 Dec 2022. 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

If an attacker was able to corrupt the methods of an Array object in JavaScript via prototype pollution, they could have achieved execution of attacker-controlled JavaScript code in a privileged context. This vulnerability affects Firefox ESR < 91.9.1, Firefox < 100.0.2, Firefox for Android < 100.3.0, and Thunderbird < 91.9.1.

Weakness: CWE-1321

Which versions are affected by CVE-2022-1802?

It affects 3 products.

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

How do I fix CVE-2022-1802?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-1802 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1802 exists.

Public exploit code: 1 proofs of concept on GitHub.

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-1802, GHSA-p859-wprc-3cjx, OESA-2024-1368, OESA-2024-1369, UBUNTU-CVE-2022-1802.

Is CVE-2022-1802 in your software?

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

Check your SBOMs for free