Out-of-Memory Exception Mishandling in JS::CheckRegExpSyntax

Out-of-Memory Exception Mishandling in JS::CheckRegExpSyntax

CVE-2023-4578 · MEDIUM Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

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.

Learn more about our Web Application Penetration Testing UK.