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

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Published: 2023-09-11T08:01:17.333Z
- Modified: 2026-06-17T06:38:08.427Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Mozilla Firefox: from unspecified before 117; before 117.0
- Mozilla Firefox ESR: from unspecified before 115.2
- Mozilla Thunderbird: from unspecified before 115.2; before 115.2
- mozilla firefox_esr: before 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

- CVE List: [CVE-2023-4578](https://www.cve.org/CVERecord?id=CVE-2023-4578), CVE Terms of Use, modified 2025-12-18
- NVD: [CVE-2023-4578](https://nvd.nist.gov/vuln/detail/CVE-2023-4578), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-4578 · Whole record: https://cve.day/CVE-2023-4578.json · Rebuilt by cve.day 2026-11-25T22:58:27.787Z
