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

Published Aug 29, 2023
·
Updated

Last updated 24 July 2024

Other sources

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.

External Reference: https://www.mozilla.org/en-US/security/advisories/mfsa2023-36/#CVE-2023-4578

— Red Hat

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.

— Launchpad

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.

— Mozilla

Affected Software

17 affected componentsFixes available
Mozilla Thunderbird<115.2
115.2
Mozilla Firefox<117.0
Mozilla Firefox ESR<115.2
Mozilla Thunderbird<115.2
Mozilla Firefox<117
117
Mozilla Firefox ESR<115.2
115.2
debian/firefox
138.0.1-1
debian/firefox-esr
115.14.0esr-1~deb11u1128.9.0esr-1~deb11u1128.8.0esr-1~deb12u1128.10.0esr-1~deb12u1128.10.0esr-1
debian/thunderbird
1:115.12.0-1~deb11u11:128.10.0esr-1~deb11u11:128.8.0esr-1~deb12u11:128.10.0esr-1~deb12u11:128.10.0esr-1
redhat/firefox<115.2
115.2
redhat/thunderbird<115.2
115.2
alpine/firefox-esr<115.2.0-r0
115.2.0-r0
alpine/firefox-esr<115.2.0-r0
115.2.0-r0
alpine/firefox-esr<115.2.0-r0
115.2.0-r0
alpine/firefox-esr<115.2.0-r0
115.2.0-r0
alpine/firefox-esr<115.2.0-r0
115.2.0-r0
alpine/firefox-esr<115.2.0-r0
115.2.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Thunderbird to a version that resolves this vulnerability.

    Fixed in 115.2
  2. Upgrade

    Upgrade Firefox to a version that resolves this vulnerability.

    Fixed in 117
  3. Upgrade

    Upgrade Firefox ESR to a version that resolves this vulnerability.

    Fixed in 115.2
  4. Upgrade

    Upgrade debian/firefox to a version that resolves this vulnerability.

    Fixed in 138.0.1-1
  5. Upgrade

    Upgrade debian/firefox-esr to a version that resolves this vulnerability.

    Fixed in 115.14.0esr-1~deb11u1Fixed in 128.9.0esr-1~deb11u1Fixed in 128.8.0esr-1~deb12u1Fixed in 128.10.0esr-1~deb12u1Fixed in 128.10.0esr-1
  6. Upgrade

    Upgrade debian/thunderbird to a version that resolves this vulnerability.

    Fixed in 1:115.12.0-1~deb11u1Fixed in 1:128.10.0esr-1~deb11u1Fixed in 1:128.8.0esr-1~deb12u1Fixed in 1:128.10.0esr-1~deb12u1Fixed in 1:128.10.0esr-1
  7. Upgrade

    Upgrade redhat/firefox to a version that resolves this vulnerability.

    Fixed in 115.2
  8. Upgrade

    Upgrade redhat/thunderbird to a version that resolves this vulnerability.

    Fixed in 115.2

Event History

Aug 29, 2023
CVE Published
via Mozilla·12:00 AM
Aug 30, 2023
Data Sourced
via Red Hat·09:44 AM
DescriptionSeverityAffected Software
Sep 11, 2023
CVE Published
via MITRE·08:01 AM
Data Sourced
via MITRE·08:01 AM
Description
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·09:15 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2023-4578?

CVE-2023-4578 is a vulnerability that occurs when calling JS::CheckRegExpSyntax, which can result in a Syntax Error being set and an Out of Memory exception being mishandled.

2

Which software products are affected by CVE-2023-4578?

Mozilla Firefox, Mozilla Thunderbird, and some Linux distributions including Red Hat and Ubuntu are affected by CVE-2023-4578.

3

What is the severity of CVE-2023-4578?

The severity of CVE-2023-4578 is medium, with a CVSS score of 6.5.

4

How can I fix CVE-2023-4578?

To fix CVE-2023-4578, it is recommended to update your affected software to the latest version provided by the vendor.

5

Where can I find more information about CVE-2023-4578?

You can find more information about CVE-2023-4578 on the MITRE CVE database, Ubuntu Security Notices, and NIST NVD websites.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203