CVEfocus › CVE database › CVE-2025-3031

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

CVSS 6.5 MediumEPSS 0.5% (higher than 36% of CVEs)Published 2025-04-01Updated 2026-04-13Assigner: mozilla

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.

CWE-200

What to do

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
14Fix pending
12Will not fix
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 26.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 25.10firefoxNot affected
vulnerable_code_not_present
Ubuntu 25.10thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 24.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 24.04mozjs102Will not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
UBUNTU-CVE-2025-3031
Ubuntu 24.04mozjs115Will not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
UBUNTU-CVE-2025-3031
Ubuntu 24.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 22.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 22.04mozjs102Will not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
UBUNTU-CVE-2025-3031
Ubuntu 22.04mozjs78Will not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
UBUNTU-CVE-2025-3031
Ubuntu 22.04mozjs91Will not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
UBUNTU-CVE-2025-3031
Ubuntu 22.04thunderbirdFixed1:140.7.1+build1-0ubuntu0.22.04.1UBUNTU-CVE-2025-3031
Ubuntu 20.04firefoxWill not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
Ubuntu 20.04mozjs52Will not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
UBUNTU-CVE-2025-3031
Ubuntu 20.04mozjs68Will not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
UBUNTU-CVE-2025-3031
Ubuntu 20.04thunderbirdWill not fix
mozjs* contain a copy of the SpiderMonkey JavaScript engine. It is not feasible to backport security fixes to the mozjs* packages, as such, marking them as…
Ubuntu 18.04mozjs38Fix pendingUBUNTU-CVE-2025-3031
Ubuntu 18.04mozjs52Fix pendingUBUNTU-CVE-2025-3031
Red Hat Enterprise Linux 10firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 10firefox-flatpak-containerFix pending
Fix deferred
Red Hat Enterprise Linux 10thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 10thunderbird-flatpak-containerFix pending
Fix deferred
Red Hat Enterprise Linux 9firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 9firefox-flatpak-containerFix pending
Fix deferred
Red Hat Enterprise Linux 9firefox-x11Fix pending
Fix deferred
Red Hat Enterprise Linux 9thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 9thunderbird-flatpak-containerFix pending
Fix deferred
Red Hat Enterprise Linux 8firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 8thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 7firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 7thunderbirdWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope

What the vendor says

As published in the CVE record by mozilla, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.