CVE-2023-4578
JSON

6.5medium

Error reporting methods in SpiderMonkey could have triggered an Out of Memory Exception

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
0.62% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mozilla

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.

Affected

Product or packageVersionsReported by
Mozilla Firefoxfrom unspecified before 117, before 117.0CVE List, NVD
Mozilla Firefox ESRfrom unspecified before 115.2CVE List
Mozilla Thunderbirdfrom unspecified before 115.2, before 115.2CVE List, NVD
mozilla firefox_esrbefore 115.2NVD

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Al llamar a `JS::CheckRegExpSyntax`, se podría haber establecido un error de sintaxis que terminaría llamando a `convertToRuntimeErrorAndClear`. Una ruta en la función podría intentar asignar memoria cuando no hay ninguna disponible, lo que habría provocado que una excepción de Falta de Memoria recién creada se manejara incorrectamente como un Error de Sintaxis. Esta vulnerabilidad afecta a Firefox &lt; 117, Firefox ESR &lt; 115.2 y Thunderbird &lt; 115.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-4578 changed 2025-12-18CVE Terms of Use
NVDCVE-2023-4578 changed 2026-06-17Public domain