CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-11941

CVE-2026-11941: Use-After-Free Vulnerabilities in Cloudflare Quiche FFI Layer

Alon Barad
Alon Barad
Software Engineer

Jun 21, 2026·7 min read·43 visits

Executive Summary (TL;DR)

Cloudflare Quiche FFI layer contains two use-after-free flaws in connection ID iterators, allowing unauthenticated remote triggers to crash C-based host applications via dangling pointer dereferences.

Two critical use-after-free vulnerabilities exist within the Foreign Function Interface (FFI) layer of Cloudflare Quiche, affecting connection ID iterator functions. These flaws occur because raw pointers are returned to C callers pointing to temporary, owned Rust values that are immediately dropped and deallocated upon function exit. This leads to undefined behavior, potential limited heap information disclosure, or application crashes when integrating applications dereference these dangling pointers.

Vulnerability Overview

The Foreign Function Interface (FFI) implementation in Cloudflare Quiche, an open-source Rust implementation of the QUIC transport protocol and HTTP/3, is subject to two distinct use-after-free (UAF) vulnerabilities. These vulnerabilities are tracked under CVE-2026-11941 and GHSA-mh64-ph39-mrc9. The vulnerabilities are localized to the connection ID iterator functions quiche_connection_id_iter_next and quiche_conn_retired_scid_next within quiche/src/ffi.rs.

Downstream applications integrating Quiche via its C-compatible FFI layer can be triggered into dereferencing dangling pointers when invoking these iterator functions. This occurs because the FFI helper functions expose raw pointers pointing to memory allocated for temporary Rust objects that are immediately dropped before the C caller can consume the referenced data.

The primary attack surface is exposed in scenarios where a server or client application uses the FFI bindings to iterate over connection identifiers, which are commonly utilized for load balancing, logging, or connection routing. Although the core Rust library handles lifetimes safely via the compiler's borrow checker, the boundary between Rust and C lacks these automatic safety guarantees, introducing memory unsafety if lifetime tracking is not manually maintained.

Root Cause Analysis

The root cause of these use-after-free vulnerabilities is a violation of lifetime boundaries at the Rust-to-C FFI layer. In Rust, the lifetime of an object is strictly tied to its scope. When converting Rust types into raw pointers (*const u8 or *mut u8) to pass them to C, the Rust compiler's borrow checker ceases to track the validity of the underlying memory. The developer must guarantee that the memory remains valid while the C program maintains the pointer.

In the case of quiche_connection_id_iter_next, the ConnectionIdIter iterator formerly returned cloned, owned ConnectionId instances. This ownership structure meant that each call to iter.next() created a new, temporary ConnectionId allocation that resided only within the scope of the FFI helper function. Once the raw pointer to this local buffer was written to the output argument, the helper function reached its exit boundary, causing Rust to drop the temporary ConnectionId and deallocate the backing heap memory.

Similarly, quiche_conn_retired_scid_next retrieved an owned ConnectionId from the active connection. The raw pointer was extracted from this temporary, owned object. Upon exiting the match arm where the pointer was assigned, the temporary ConnectionId went out of scope and was immediately freed. Consequently, the C application was handed a status code of true alongside a pointer that pointed to freed heap memory, creating an immediate dangling pointer scenario.

Code Analysis

To analyze the specific flaw, examine the vulnerable FFI function quiche_connection_id_iter_next as it existed before the patch. The function attempts to extract the raw pointer and length of a connection identifier from the iterator.

// VULNERABLE CODE PATH
#[no_mangle]
pub extern "C" fn quiche_connection_id_iter_next(
    iter: &mut ConnectionIdIter, out: &mut *const u8, out_len: &mut size_t,
) -> bool {
    if let Some(conn_id) = iter.next() { // iter.next() returns Option<ConnectionId> (owned copy)
        let id = conn_id.as_ref();
        *out = id.as_ptr(); // Pointing to the internal buffer of the owned `conn_id`
        *out_len = id.len();
        return true;
    } // <-- `conn_id` goes out of scope here and is dropped!
      // The heap memory backing `conn_id` is freed, leaving `*out` dangling.
    false
}

The patch resolved this by restructuring how connection IDs are stored and retrieved. The unused standard Iterator trait implementation on ConnectionIdIter was removed. The corrected function now borrows directly from the vector owned by the iterator, ensuring the memory remains allocated as long as the iterator itself is alive.

// PATCHED CODE PATH (Commit: 386ad632bef063aea503be1819f5fda503950876)
#[no_mangle]
pub extern "C" fn quiche_connection_id_iter_next(
    iter: &mut ConnectionIdIter, out: &mut *const u8, out_len: &mut size_t,
) -> bool {
    if let Some(conn_id) = iter.cids.get(iter.index) { // Borrow directly from the vector owned by `iter`
        let id = conn_id.as_ref();
        *out = id.as_ptr(); // Pointer points to memory owned by `iter`, which outlives this call
        *out_len = id.len();
        iter.index += 1;
        return true;
    }
    false
}

For quiche_conn_retired_scid_next, because the underlying connection struct yields owned ConnectionId elements on retirement, returning references was not directly feasible without risking leakages or lifetime conflicts. The developers removed the vulnerable quiche_conn_retired_scid_next function entirely and replaced it with an iterator-based allocation pattern.

// PATCHED ITERATOR INITIALIZATION (Commit: f2db946cf12c18448b6c8dfb03a46777f92f8ab8)
#[no_mangle]
pub extern "C" fn quiche_conn_retired_scid_iter(
    conn: &mut Connection,
) -> *mut ConnectionIdIter<'_> {
    let mut cids = Vec::with_capacity(conn.retired_scids());
    while let Some(cid) = conn.retired_scid_next() {
        cids.push(cid);
    }
    Box::into_raw(Box::new(ConnectionIdIter { cids, index: 0 }))
}

This implementation drains the retired connection IDs into a heap-allocated ConnectionIdIter, transferring ownership. The C host application must subsequently iterate using the corrected quiche_connection_id_iter_next and release the iterator memory via quiche_connection_id_iter_free.

Exploitation and Attack Scenarios

Exploiting these use-after-free vulnerabilities requires specific host application behaviors. An attacker must interact with a C/C++ application that integrates Quiche with the ffi feature enabled. The host application must actively call the affected iteration APIs to process connection identifiers.

A remote attacker can trigger the execution paths of these iterators by interacting with the target server. For instance, sending specific transport parameters that trigger connection ID rotation or retirement causes the application to populate retired source connection IDs (SCIDs). When the host application runs its routine loop to fetch these IDs, the dangling pointer is generated.

The primary outcome is an immediate process crash due to a segmentation fault when dereferencing the deallocated memory block. If the allocator has reallocated the freed block for other data before the pointer is dereferenced, a reading application could leak sensitive heap metadata, potentially resulting in limited information disclosure.

Impact Assessment

The overall severity of CVE-2026-11941 is assessed as Medium, with a CVSS v3.1 base score of 5.6. This classification reflects the strict preconditions required for exploitation. The vulnerability cannot be triggered unless the target application is explicitly compiled with the optional FFI feature, which is disabled by default in standard Rust installations of Quiche.

For systems that do use the FFI wrapper, the impact is primarily on system availability. A crashing server thread or process terminates existing client sessions, leading to a Denial of Service (DoS). While process supervisors (such as systemd or Kubernetes pods) can automatically restart failed instances, a sustained stream of exploit packets could cause a persistent denial of service state.

Confidentiality and integrity impacts are rated as Low. This is due to the difficulty of staging a reliable heap grooming attack across the FFI boundary. To leak useful information or manipulate application state, the attacker must align heap allocations precisely, which is highly complex in multi-threaded asynchronous network environments typical of QUIC deployments.

Remediation and Mitigation

Remediation requires upgrading the quiche library dependency to version 0.29.2 or later. This is the only way to eliminate the vulnerability within the library. Downstream developers must also refactor their C-based FFI integration code to conform to the new iterator paradigm.

Specifically, developers must remove any logic relying on the deprecated quiche_conn_retired_scid_next function. Code must be updated to construct a ConnectionIdIter instance via quiche_conn_retired_scid_iter, perform the iteration using quiche_connection_id_iter_next, and finally release the allocated iterator memory with quiche_connection_id_iter_free to prevent memory leaks.

If immediate upgrading is unfeasible, temporary mitigation involves disabling the ffi compilation feature if the application does not strictly require it, or modifying the C wrapper to avoid retrieving retired connection IDs entirely. Alternatively, host applications can implement strict validation or sandboxing to isolate the process running the Quiche FFI layer, limiting the scope of any potential process crash.

Official Patches

CloudflareFix for quiche_connection_id_iter_next
CloudflareFix for quiche_conn_retired_scid_next

Fix Analysis (2)

Technical Appendix

CVSS Score
5.6/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS Probability
0.04%
Top 88% most exploited

Affected Systems

Applications incorporating Cloudflare Quiche via its Foreign Function Interface (FFI) compiled with the 'ffi' cargo feature.

Affected Versions Detail

Product
Affected Versions
Fixed Version
quiche
Cloudflare
>= 0.20.0, < 0.29.20.29.2
AttributeDetail
CWE IDCWE-416
Attack VectorNetwork (AV:N)
CVSS v3.1 Score5.6 (Medium)
Exploit StatusNone (No public PoC or active exploitation)
CISA KEV StatusNot Listed
ImpactDenial of Service (DoS) / Limited Information Disclosure
Affected Componentquiche/src/ffi.rs

MITRE ATT&CK Mapping

T1203Exploitation for Client Execution
Execution
T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-416
Use After Free

The product uses a pointer to a heap allocation after it has been freed.

Vulnerability Timeline

Vulnerability fixes committed to upstream repository
2026-05-06
Cloudflare publishes GHSA-mh64-ph39-mrc9
2026-06-19
CVE-2026-11941 is published to the registry
2026-06-19
Quiche version 0.29.2 is released containing the fixes
2026-06-19

References & Sources

  • [1]Cloudflare Quiche Advisory (GHSA-mh64-ph39-mrc9)
  • [2]Official CVE.org Record
  • [3]NVD Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•39 minutes ago•CVE-2026-63349
7.0

CVE-2026-63349: Privilege Dropping Bypass and Denial of Service in AnyIO Subprocess Module

CVE-2026-63349 is a critical privilege-dropping bypass vulnerability in the AnyIO asynchronous framework (versions 4.14.0 and 4.14.1) on POSIX platforms. Due to a variable assignment typo, supplementary groups specified by the developer are not correctly propagated to the execution backend, resulting in subprocesses retaining the parent process's elevated supplementary group permissions.

Alon Barad
Alon Barad
4 views•5 min read
•about 2 hours ago•CVE-2026-63406
5.9

CVE-2026-63406: Information Disclosure via Insecure Telemetry and Hardcoded Credentials in AnyCable-Go

CVE-2026-63406 is an information disclosure vulnerability in AnyCable-go prior to version 1.6.15. The built-in telemetry client is enabled by default with a hardcoded public authentication token ('secret'). This client digests highly sensitive configuration parameters and command-line arguments, including JWT secrets and RPC secrets, into a stable SHA-256 fingerprint. This fingerprint is sent over public networks, exposing those administrative secrets to offline dictionary and brute-force attacks if intercepted.

Alon Barad
Alon Barad
4 views•5 min read
•about 3 hours ago•CVE-2026-84992
6.1

CVE-2026-84992: Cross-Site Scripting (XSS) via Fenced Code Block Parsing in md-editor-v3

CVE-2026-84992 is a Cross-Site Scripting (XSS) vulnerability affecting md-editor-v3 before version 6.5.4. It occurs because the fenced-code block language parser directly interpolates unescaped language metadata into unquoted HTML attributes inside the custom rendering callback. This bypasses the built-in XSSPlugin which runs during the parsing phase, before rendering.

Amit Schendel
Amit Schendel
7 views•6 min read
•about 4 hours ago•CVE-2026-81505
7.1

CVE-2026-81505: Broken Object Level Authorization (BOLA) in Convoy Webhook Source Retrieval

CVE-2026-81505 is a high-severity Broken Object Level Authorization (BOLA) / Insecure Direct Object Reference (IDOR) vulnerability in Convoy, a cloud-native webhooks gateway. In affected versions prior to 26.6.8, the single-item Source retrieval API endpoint authorizes project access but fails to confirm if the requested Source belongs to that specific project. This logical flaw allows authenticated users or project-scoped API key holders to bypass tenant isolation boundaries and retrieve unredacted, plaintext message broker credentials for Apache Kafka, Amazon SQS, RabbitMQ, and Google Cloud Pub/Sub belonging to other tenants. This issue is fully patched in version 26.6.8.

Amit Schendel
Amit Schendel
8 views•5 min read
•about 5 hours ago•CVE-2026-77339
5.1

CVE-2026-77339: Unauthenticated Remote Command Execution in Process Compose via DNS Rebinding

CVE-2026-77339 is a critical security vulnerability in Process Compose before version 1.120.0. The Model Context Protocol (MCP) Server-Sent Events (SSE) listener transport subsystem fails to validate the HTTP Host and Origin headers, and does not enforce authentication. This omissions expose local loopback listeners to DNS rebinding attacks orchestrated by malicious remote websites visited by developers, enabling unauthorized process control and arbitrary command execution.

Alon Barad
Alon Barad
8 views•6 min read
•about 6 hours ago•CVE-2026-77301
7.5

CVE-2026-77301: Uncontrolled Resource Allocation (Decompression Bomb) in adm-zip

CVE-2026-77301 is a critical uncontrolled resource allocation vulnerability in the popular Node.js library adm-zip (versions prior to 0.6.1). During ZIP decompression of asynchronous entries, the library trusts the uncompressed size metadata declared in the central directory headers. Because Node.js's streaming zlib API completely ignores the maxOutputLength configuration, a crafted ZIP archive (decompression bomb) causes the application to continually allocate resident memory buffers on the heap without limits, causing rapid memory exhaustion and a process-level Out-of-Memory (OOM) crash.

Alon Barad
Alon Barad
6 views•5 min read