CVE-2023-4578
Mozilla: Error reporting methods in SpiderMonkey could have triggered an Out of Memory Exception
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 29, 2023
Updated · November 21, 2025
Description
The Mozilla Foundation Security Advisory describes this flaw as:
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.
Statement
Red Hat Product Security rates the severity of this flaw as determined by the Mozilla Foundation Security Advisory.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer