CVE-2022-31741 Memory corruption in Firefox

High 8.8 Published Updated

A crafted CMS message can cause invalid memory reads and potential memory corruption in Firefox and Thunderbird, allowing attackers to execute arbitrary code.

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

CVE-2022-31741 is a high-severity memory corruption 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 crafted CMS message could have been processed incorrectly, leading to an invalid memory read, and potentially further memory corruption. This vulnerability affects Thunderbird < 91.10, Firefox < 101, and Firefox ESR < 91.10.

Weakness: CWE-908

Which versions are affected by CVE-2022-31741?

It affects 3 products.

Linux distribution packages (40)
mozilla-nspr SUSE:Enterprise Storage 6All versions4.34-150000.3.23.1
mozilla-nss SUSE:Enterprise Storage 6All versions3.79-150000.3.74.1
mozilla-nspr SUSE:Enterprise Storage 7All versions4.34-150000.3.23.1
mozilla-nss SUSE:Enterprise Storage 7All versions3.79-150000.3.74.1
mozilla-nss SUSE:HPE Helion OpenStack 8All versions3.68.4-58.72.1
mozilla-nspr SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Micro 5.1All versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Micro 5.1All versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Micro 5.2All versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Micro 5.2All versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions3.79-150400.3.7.1
mozilla-nss SUSE:Linux Enterprise Module for Server Applications 15 SP3All versions3.79-150000.3.74.1
mozilla-nss SUSE:Linux Enterprise Server 12 SP2-BCLAll versions3.68.4-58.72.1
mozilla-nss SUSE:Linux Enterprise Server 12 SP3-BCLAll versions3.68.4-58.72.1
mozilla-nss SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions3.68.4-58.72.1
mozilla-nss SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions3.68.4-58.72.1
mozilla-nss SUSE:Linux Enterprise Server 12 SP5All versions3.68.4-58.72.1
mozilla-nspr SUSE:Linux Enterprise Server 15 SP1-BCLAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Server 15 SP1-BCLAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Server 15 SP2-BCLAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Server 15 SP2-BCLAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions4.34-150000.3.23.1
mozilla-nss SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions3.79-150000.3.74.1
mozilla-nspr SUSE:Linux Enterprise Server 15-LTSSAll versions4.34-150000.3.23.1

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

How do I fix CVE-2022-31741?

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-2022-31741 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-31741, GHSA-wg2f-j4pf-5gpx, SUSE-SU-2022:2031-1, SUSE-SU-2022:2533-1, SUSE-SU-2022:2533-2, SUSE-SU-2022:2595-1 and 1 more.

Is CVE-2022-31741 in your software?

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

Check your SBOMs for free