CVE-2025-3031 JIT optimization bug with different stack slot sizes

Medium 6.5 Published Updated

An attacker can read 32 bits of stack data via a JIT optimization bug in Firefox and Thunderbird, potentially exposing sensitive information.

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

What is CVE-2025-3031?

CVE-2025-3031 is a medium-severity vulnerability in Mozilla Firefox, published on 1 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An attacker could read 32 bits of values spilled onto the stack in a JIT compiled function. This vulnerability was fixed in Firefox 137 and Thunderbird 137.

Weakness: CWE-200

Which versions are affected by CVE-2025-3031?

It affects 2 products.

Products include Mozilla Firefox, Mozilla Thunderbird.

How do I fix CVE-2025-3031?

Upgrade to a fixed version.

Is CVE-2025-3031 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-5v8r-67h5-p4jj, UBUNTU-CVE-2025-3031.

Is CVE-2025-3031 in your software?

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

Check your SBOMs for free