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 package | Versions | Reported by |
|---|---|---|
| Mozilla Firefox | from unspecified before 117, before 117.0 | CVE List, NVD |
| Mozilla Firefox ESR | from unspecified before 115.2 | CVE List |
| Mozilla Thunderbird | from unspecified before 115.2, before 115.2 | CVE List, NVD |
| mozilla firefox_esr | before 115.2 | NVD |
Classification
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 < 117, Firefox ESR < 115.2 y Thunderbird < 115.2.
References
| https://bugzilla.mozilla.org/show_bug.cgi?id=1839007 | issue-tracking, permissions-required | |
| https://www.mozilla.org/security/advisories/mfsa2023-34/ | vendor-advisory | |
| https://www.mozilla.org/security/advisories/mfsa2023-36/ | vendor-advisory | |
| https://www.mozilla.org/security/advisories/mfsa2023-38/ | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-4578 changed 2025-12-18 | CVE Terms of Use |
| NVD | CVE-2023-4578 changed 2026-06-17 | Public domain |