CVE-2026-2762
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-2762 is an integer overflow vulnerability in the JavaScript Standard Library component (EncodeForRegExpEscape) of Mozilla Firefox and Thunderbird, affecting 32-bit builds only. It was discovered and reported by André Bargull, disclosed on February 24, 2026, and fixed in Firefox 148, Firefox ESR 140.8, Thunderbird 148, and Thunderbird ESR 140.8. The vulnerability carries a CVSS v3.1 base score of 9.8 (Critical) (Mozilla Advisory MFSA2026-13, Mozilla Advisory MFSA2026-15).

Technical details

The root cause is a CWE-190 (Integer Overflow or Wraparound) in the EncodeForRegExpEscape function within js/src/builtin/RegExp.cpp. On 32-bit builds, the output length computation for RegExp.escape() uses a plain size_t, which overflows when processing very large strings — for example, RegExp.escape("\udf00".repeat(0x2AAAAAAB)) causes 0x2AAAAAAB * 6 to wrap around to just 2. The code then calls StringBuilder::reserve(2) but subsequently writes the full (much larger) number of characters into that 2-byte buffer, resulting in an out-of-bounds write into the js::StringBufferArena malloc arena. The fix replaced the plain size_t with mozilla::CheckedInt to detect and handle the overflow safely. 64-bit builds are not affected. (Mozilla Bugzilla #2011649)

Impact

Successful exploitation enables an out-of-bounds memory write into the js::StringBufferArena malloc arena, which can lead to memory corruption and potentially arbitrary code execution in the context of the browser or email client process. The CVSS score reflects high impact to confidentiality, integrity, and availability, meaning an attacker could compromise the affected system, exfiltrate data, or disrupt services. Because the vulnerability is triggered via JavaScript execution, it is exploitable through malicious web pages or email content rendered by Thunderbird, affecting any user running a 32-bit build of the affected products (Mozilla Advisory MFSA2026-13, Mozilla Bugzilla #2011649).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The EPSS score is approximately 0.018% (0.000180), indicating a low current probability of exploitation in the wild. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. While the bug reporter noted that an attacker could infer the nature of the fix from the patch (replacing size_t with mozilla::CheckedInt), constructing a reliable exploit to achieve code execution after the initial memory corruption would require additional research (Mozilla Bugzilla #2011649).

Exploitation steps

  1. Identify target: Confirm the target is running a 32-bit build of Firefox (< 148 or ESR < 140.8) or Thunderbird (< 148 or ESR < 140.8), as 64-bit builds are not affected.
  2. Craft malicious JavaScript: Prepare a JavaScript payload that calls RegExp.escape() with a sufficiently large string to trigger the integer overflow — e.g., RegExp.escape("\udf00".repeat(0x2AAAAAAB)).
  3. Deliver payload: Host the malicious JavaScript on a web page (for Firefox) or embed it in an HTML email (for Thunderbird) and lure the victim to visit/open it.
  4. Trigger overflow: When the JavaScript engine processes the RegExp.escape() call, the output length computation overflows size_t on 32-bit platforms, causing StringBuilder::reserve() to allocate only 2 bytes.
  5. Out-of-bounds write: The engine writes the full (much larger) string content into the undersized buffer, corrupting adjacent memory in the js::StringBufferArena malloc arena.
  6. Achieve code execution: Leverage the memory corruption to gain control of execution flow, potentially enabling arbitrary code execution in the browser/email client process context (Mozilla Bugzilla #2011649).

Mitigation and workarounds

Mozilla has released patches addressing this vulnerability. Users should upgrade to Firefox 148 or later, Firefox ESR 140.8 or later, Thunderbird 148 or later, or Thunderbird ESR 140.8 or later. No configuration-based workaround is available; upgrading is the only remediation. Organizations unable to patch immediately should consider restricting JavaScript execution in high-risk environments or blocking access to untrusted web content. Patch details are available in Mozilla Security Advisories MFSA2026-13, MFSA2026-15, MFSA2026-16, and MFSA2026-17 (Mozilla Advisory MFSA2026-13, Mozilla Advisory MFSA2026-15).

Community reactions

The vulnerability was reported by Mozilla community member André Bargull, who also developed the fix. Multiple Linux distributions (Debian, Red Hat, AlmaLinux, Rocky Linux, Oracle Linux, SUSE, Slackware, Amazon Linux) issued downstream security advisories and updated packages shortly after Mozilla's disclosure. Vulnerability tracking platforms including Tenable (Nessus) and Qualys added detection coverage within days of the advisory. No notable independent researcher commentary or significant social media discussion specific to this CVE has been identified beyond standard patch notification coverage.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

thunderbird: 1:140.8.0esr-1~deb12u1

Fixed

sid

thunderbird: 1:140.8.0esr-1

Fixed

trixie

thunderbird: 1:140.8.0esr-1~deb13u1

Fixed

Ubuntu

Affected

bionic (esm-apps)

mozjs38

Unknown

devel

firefox

Not Affected

jammy

thunderbird

Affected

noble

firefox

Not Affected

questing

firefox

Not Affected

resolute

firefox

Not Affected

RHEL / CentOS

Fixed

RHEL 8

:appstream:firefox-0:140.8.0-2.el8_10.src

Fixed

RHEL 9

:appstream:firefox-0:140.8.0-2.el9_0.src

Fixed

RHEL 10

firefox-0:140.8.0-2.el10_0.src

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86738CRITICAL9.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86734HIGH7.1
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86735MEDIUM5.9
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86737MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86736MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management