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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-09-11 · Modified: 2025-12-18
- Aliases: UBUNTU-CVE-2023-4578, DEBIAN-CVE-2023-4578, CGA-6ghp-cw5c-pj58, CGA-xq3v-v295-h3j3, ALPINE-CVE-2023-4578
- Record: https://cvemate.com/vulnerability/CVE-2023-4578 · JSON: https://cvemate.com/vulnerability/CVE-2023-4578/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.617%, percentile 50.995%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine firefox-esr (Alpine Linux): \< 115.2.0-r0
- chainguard firefox-esr (Chainguard): \< 117.0-r0
- debian firefox-esr (Debian): \< 115.2.0esr-1
- debian thunderbird (Debian): \< 1:115.2.0-1
- ubuntu firefox (Ubuntu): \< 117.0+build2-0ubuntu0.20.04.1
- ubuntu mozjs102 (Ubuntu): All versions (No fix recorded)
- ubuntu mozjs38 (Ubuntu): All versions (No fix recorded)
- ubuntu mozjs52 (Ubuntu): All versions (No fix recorded)
- ubuntu mozjs68 (Ubuntu): All versions (No fix recorded)
- ubuntu mozjs78 (Ubuntu): All versions (No fix recorded)
- ubuntu mozjs91 (Ubuntu): All versions (No fix recorded)
- ubuntu thunderbird (Ubuntu): \< 1:115.3.1+build1-0ubuntu0.20.04.1 \| \< 1:115.3.1+build1-0ubuntu0.22.04.2
- mozilla firefox: ≥ unspecified, \< 117 \| \< 117.0
- mozilla firefox esr: ≥ unspecified, \< 115.2 \| \< 115.2
- mozilla thunderbird: ≥ unspecified, \< 115.2 \| \< 115.2

## References

- <https://bugzilla.mozilla.org/show_bug.cgi?id=1839007>
- <https://www.mozilla.org/security/advisories/mfsa2023-34/>
- <https://www.mozilla.org/security/advisories/mfsa2023-36/>
- <https://www.mozilla.org/security/advisories/mfsa2023-38/>
- <https://ubuntu.com/security/CVE-2023-4578>
- <https://ubuntu.com/security/notices/USN-6320-1>
- <https://ubuntu.com/security/notices/USN-6405-1>
- <https://www.cve.org/CVERecord?id=CVE-2023-4578>
- <https://security-tracker.debian.org/tracker/CVE-2023-4578>
- <https://security.alpinelinux.org/vuln/CVE-2023-4578>

---

Data as of 2026-12-05T02:56:49.364Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
