CVE-2025-8027 JavaScript engine only wrote partial return value to stack

Medium 6.5 Published Updated

A memory corruption flaw in the Firefox JavaScript engine allows attackers to execute arbitrary code or cause a denial of service.

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-2025-8027?

CVE-2025-8027 is a medium-severity memory corruption vulnerability in Mozilla Firefox, published on 22 Jul 2025. 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

On 64-bit platforms IonMonkey-JIT only wrote 32 bits of the 64-bit return value space on the stack. Baseline-JIT, however, read the entire 64 bits. This vulnerability was fixed in Firefox 141, Firefox ESR 115.26, Firefox ESR 128.13, Firefox ESR 140.1, Thunderbird 141, Thunderbird 128.13, and Thunderbird 140.1.

Weakness: CWE-457

Which versions are affected by CVE-2025-8027?

It affects 2 products.

Products include Mozilla Firefox, Mozilla Thunderbird.

How do I fix CVE-2025-8027?

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

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

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-8027, GHSA-j3rx-39f7-r8hw, UBUNTU-CVE-2025-8027.

Is CVE-2025-8027 in your software?

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

Check your SBOMs for free