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-61544

CVE-2026-61544: Remote Panic in libp2p-quic via Certificate Expiry Race

Alon Barad
Alon Barad
Software Engineer

Sep 16, 2026·7 min read·13 visits

Executive Summary (TL;DR)

Unauthenticated remote attackers can crash libp2p-quic nodes by stalling handshakes with short-lived certificates that expire during the connection phase.

CVE-2026-61544 is a high-severity remote Denial of Service (DoS) vulnerability in libp2p-quic, the QUIC transport implementation of the official Rust networking stack for libp2p. It allows unauthenticated remote attackers to trigger an uncaught panic and crash listener applications.

Vulnerability Overview

The libp2p-quic crate provides QUIC-based transport mechanisms for the Rust implementation of the libp2p network stack. The library supports peer identification and encryption on inbound network connections, relying on the QUIC transport and a TLS 1.3 handshake to exchange peer certificates. This setup establishes identity authenticity and provides cryptographic verification of public keys.

A high-severity denial of service vulnerability exists in the post-handshake identity extraction pipeline. An unauthenticated remote attacker can force a host application to crash by presenting a certificate with a very short validity window and actively stalling the TLS handshake process. The flaw is categorized as an uncaught exception (CWE-248) stemming from unsafe parsing assumptions when evaluating the certificate chain.

The attack surface is exposed on any active libp2p node listening for inbound QUIC connections. Since peer verification happens during connection setup before any application-level authentication, any exposed port running libp2p-quic is susceptible. The vulnerability does not require prior privileges or user interaction, representing a high availability threat.

Root Cause Analysis

To understand the failure mode, it is necessary to examine how rust-libp2p performs connection upgrades. When a remote node initiates a connection, the underlying TLS library (rustls via the quinn crate) handles the initial cryptographic handshake. During this phase, rustls validates the peer's certificate chain, verifying cryptographic signatures and ensuring the host's current clock falls between the certificate's not_before and not_after bounds.

Once the TLS handshake succeeds, libp2p-quic executes a post-handshake upgrade routine in transports/quic/src/connection/connecting.rs via the remote_peer_id() function. This routine extracts the Peer ID from the established TLS session by passing the peer's certificate back to the libp2p_tls::certificate::parse() function. The developers assumed that since the certificate had just survived validation by rustls, parsing it immediately afterward was an infallible operation.

Based on this assumption, the code used .expect("the certificate was validated during TLS handshake; qed") to unwrap the parsing result. However, libp2p_tls::certificate::parse() does not merely decode the certificate structure; it also performs its own validation, including re-evaluating the temporal validity against the system clock. This creates a time-of-check to time-of-use (TOCTOU) race condition.

If an attacker issues a certificate with an expiration time designed to lapse during the brief window of the handshake, the initial check by rustls succeeds. By intentionally delaying the transport of the final TLS handshake messages, the attacker ensures the system clock passes the certificate's expiration time before remote_peer_id() is evaluated. When parse() is called during the post-handshake phase, it detects the expired certificate, returns an Err, and triggers the .expect() panic, crashing the supervisor thread.

Code-Level Analysis and Patch Evaluation

A comparison of the vulnerable and patched code reveals how the logic was refactored to replace infallible unwraps with explicit error propagation. In the vulnerable implementation of remote_peer_id(), multiple assumptions were made using panicking assertions like .expect() and .unwrap(). The critical vulnerability point occurred when calling libp2p_tls::certificate::parse().

In commit e8f35e12c2418b04df6e9cdf036005e8aee3c7a2, the function signature of remote_peer_id() was modified to return a Result<PeerId, Error> rather than returning a raw PeerId and panicking on failure. The team introduced a local helper function, transport_err(), which converts parsing failures and missing credentials into structured QUIC transport errors. These errors map specifically to the PROTOCOL_VIOLATION transport error code.

Instead of forcing a thread panic, the updated logic uses ok_or_else(), map_err(), and the ? operator to safely surface the validation failures. The caller function, representing the Future execution block of the Connecting state, propagates this error upward to the network stack. Rather than terminating the entire listener application, the stack aborts the specific connection attempt while maintaining the availability of the host node.

The fix is highly effective and complete because it removes the assumption of post-handshake infallibility. By transforming a fatal runtime panic into a standard network transport error, the system safely sheds malicious connections. No variant attacks against this specific path remain viable as all unwrap and expect calls have been removed from the handshake parse phase.

Exploitation Methodology & Proof of Concept

Exploiting this vulnerability requires precise network transport control but is structurally straightforward. An attacker generates an asymmetric key pair and constructs a self-signed certificate. Crucially, the certificate's not_after expiration timestamp is set to a window only slightly ahead of the current global time, such as 50 to 100 milliseconds into the future.

The attacker then initiates a standard QUIC connection with the target node. When the target's TLS layer processes the initial handshake packets, the certificate is temporally valid, allowing the connection sequence to proceed. At this point, the attacker deliberately holds back or throttles the final handshake packets, forcing the target's connection state machine to stall.

During this injected delay, the certificate's narrow validity window expires. Once the delay threshold is met, the attacker releases the final packets, completing the TLS session. The target node transitions to the post-handshake identity extraction phase, executes the re-parsing function, and triggers the fatal panic.

A simple API-level integration test demonstrates that expired certificates correctly yield errors rather than panics post-patch, proving the efficacy of the remediation.

Impact and Severity Assessment

The primary consequence of successful exploitation is a complete Denial of Service (DoS) of the affected libp2p node. Because the crash occurs within the execution context of the main network supervisor thread, the uncaught panic propagates to the process boundary. This shuts down the host application, terminating all active peer connections and preventing new connections from being established.

In decentralized networks where rust-libp2p is widely deployed, such as Ethereum consensus clients, Polkadot validator nodes, or IPFS infrastructure, this vulnerability represents an operational threat. A malicious actor could systematically scan the network and crash peer nodes, potentially disrupting consensus networks or file-sharing swarms. The low attack complexity and lack of authentication credentials heighten the overall risk profile.

The CVSS v4.0 score of 8.2 (High) accurately reflects these parameters. The attack vector is Network (AV:N), complexity is High (AC:H) due to the timing constraints, and privileges required are None (PR:N). While there is no impact on confidentiality (VC:N) or integrity (VI:N), the availability impact is High (VA:H), meaning system operators must prioritize deployment of the patch.

Remediation and Operational Defense

The definitive remediation for this vulnerability is upgrading the libp2p-quic dependency to version 0.13.1 or higher. For complete systems relying on the bundled libp2p meta-crate, developers should verify that the underlying transport resolves to the patched version. Since the Rust compiler statically links dependencies, affected applications must be recompiled and redeployed.

In environments where immediate software updates are impossible, network operators can implement temporary mitigations. Restricting access to the QUIC port using stateful firewalls or rate-limiting incoming connection requests can reduce the efficiency of scanning tools. Additionally, deploying service managers configured to automatically restart the application upon a crash can partially offset the impact of successful DoS attempts, though it does not address the underlying flaw.

Developers are advised to review other handshake and protocol transition logic for similar uses of .expect() or .unwrap(). In Rust network programming, assuming that external input remains valid across state boundaries is a common anti-pattern. Validating all external data at the exact point of consumption, rather than relying on prior state assumptions, is essential for writing robust, panic-free network services.

Fix Analysis (2)

Technical Appendix

CVSS Score
8.2/ 10
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected Systems

rust-libp2p (specifically the libp2p-quic transport)

Affected Versions Detail

Product
Affected Versions
Fixed Version
libp2p-quic
libp2p
< 0.13.10.13.1
AttributeDetail
CWE IDCWE-248
Attack VectorNetwork (AV:N)
CVSS Score8.2 (High)
ImpactDenial of Service (Process Crash)
Exploit StatusPoC (Integration Test Proof)
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1499.004Endpoint Denial of Service: Application Denial of Service
Impact
CWE-248
Uncaught Exception

The product does not catch or otherwise handle an exception, which can cause the product to crash or terminate abnormally.

References & Sources

  • [1]GitHub Security Advisory GHSA-5hq8-qhww-jm7q
  • [2]Official Pull Request #6525
  • [3]Fix Commit 1 (Regression Test)
  • [4]Fix Commit 2 (QUIC Refactoring)
  • [5]CVE Registry 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

•21 minutes ago•CVE-2026-28385
5.0

CVE-2026-28385: Server-Side Request Forgery in Canonical LXD Image Import

CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.

Amit Schendel
Amit Schendel
1 views•9 min read
•about 1 hour ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
4 views•12 min read
•about 2 hours ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
3 views•9 min read
•about 3 hours ago•GHSA-FMC8-P6Q7-75CC
9.9

GHSA-fmc8-p6q7-75cc: Argument Injection in Canonical LXD Backup Compression Leads to Host Root Code Execution

GHSA-fmc8-p6q7-75cc (associated with CVE-2026-48755) is a critical argument injection vulnerability in Canonical LXD (github.com/canonical/lxd). The vulnerability occurs during instance and storage volume backup operations when processing the user-supplied compression_algorithm configuration parameter. While LXD validates the primary executable token against an allowlist of supported compression binaries, it fails to sanitize or restrict subsequent tokens parsed via shellquote.Split. These additional arguments are passed directly to exec.Command. An authenticated attacker with privileges to trigger backups can inject command-line flags for utilities like zstd to read staged files from a container filesystem and write them to arbitrary paths on the underlying host filesystem, such as /etc/cron.d/, achieving root-level arbitrary code execution on the host.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 4 hours ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
7 views•10 min read
•about 8 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
7 views•9 min read