CVE-2023-4578 Error reporting methods in SpiderMonkey could have triggered an Out of Memory Exception

Medium 6.5 Published Updated

An error handling flaw in SpiderMonkey could cause an unhandled Out of Memory exception, leading to a denial of service in Firefox and Thunderbird.

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-2023-4578?

CVE-2023-4578 is a medium-severity denial of service vulnerability in Mozilla Firefox, published on 11 Sep 2023. 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

When calling `JS::CheckRegExpSyntax` a Syntax Error could have been set which would end in calling `convertToRuntimeErrorAndClear`. A path in the function could attempt to allocate memory when none is available which would have caused a newly created Out of Memory exception to be mishandled as a Syntax Error. This vulnerability affects Firefox < 117, Firefox ESR < 115.2, and Thunderbird < 115.2.

Weakness: CWE-770

Which versions are affected by CVE-2023-4578?

It affects 3 products.

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

How do I fix CVE-2023-4578?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-4578 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-4578, GHSA-phv6-6pfh-prxc, UBUNTU-CVE-2023-4578.

Is CVE-2023-4578 in your software?

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

Check your SBOMs for free