CVE-2025-0240 Compartment mismatch when parsing JavaScript JSON module

Medium 4.0 Published Updated

A use-after-free vulnerability in Firefox and Thunderbird allows attackers to execute arbitrary code via crafted JavaScript JSON modules.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-0240?

CVE-2025-0240 is a medium-severity use after free vulnerability in Mozilla Firefox, published on 7 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Parsing a JavaScript module as JSON could, under some circumstances, cause cross-compartment access, which may result in a use-after-free. This vulnerability was fixed in Firefox 134, Firefox ESR 128.6, Thunderbird 134, and Thunderbird 128.6.

Weakness: CWE-416

Which versions are affected by CVE-2025-0240?

It affects 2 products.

Products include Mozilla Firefox, Mozilla Thunderbird.

How do I fix CVE-2025-0240?

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-2025-0240 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-0240, GHSA-f3xq-g93v-w8cv, UBUNTU-CVE-2025-0240.

Is CVE-2025-0240 in your software?

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

Check your SBOMs for free