CVE-2022-46874 Code injection in Firefox

High 8.8 Published Updated

Attackers can execute malicious code by exploiting filename truncation that hides valid extensions, affecting Firefox and Thunderbird users.

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-46874?

CVE-2022-46874 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

A file with a long filename could have had its filename truncated to remove the valid extension, leaving a malicious extension in its place. This could potentially led to user confusion and the execution of malicious code.<br/>*Note*: This issue was originally included in the advisories for Thunderbird 102.6, but a patch (specific to Thunderbird) was omitted, resulting in it actually being fixed in Thunderbird 102.6.1. This vulnerability affects Firefox < 108, Thunderbird < 102.6.1, Thunderbird < 102.6, and Firefox ESR < 102.6.

Weakness: CWE-94

Which versions are affected by CVE-2022-46874?

It affects 3 products.

Linux distribution packages (3)
MozillaThunderbird SUSE:Linux Enterprise Module for Package Hub 15 SP4All versions102.6.1-150200.8.99.1
MozillaThunderbird SUSE:Linux Enterprise Workstation Extension 15 SP4All versions102.6.1-150200.8.99.1
MozillaThunderbird openSUSE:Leap 15.4All versions102.6.1-150200.8.99.1

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

How do I fix CVE-2022-46874?

Upgrade to a fixed version.

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

Is CVE-2022-46874 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-46874, GHSA-pwwf-7f48-895h, MGASA-2022-0484, SUSE-SU-2022:4636-1, UBUNTU-CVE-2022-46874.

Is CVE-2022-46874 in your software?

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

Check your SBOMs for free