Sep 16, 2026·7 min read·15 visits
Ember HTTP/2 in http4s fails to limit outbound response queues, permitting remote attackers to crash the JVM via OutOfMemoryError by flooding control frames while stalling socket reads.
An uncontrolled resource consumption vulnerability (CVE-2026-69213) in the http4s Ember HTTP/2 server and client implementations allows unauthenticated remote attackers to trigger an OutOfMemoryError (OOM) and cause a Denial of Service (DoS) by exploiting unbounded outbound queues.
The HTTP/2 protocol implementation within the http4s Ember server and client modules (http4s-ember-core) suffers from a high-severity resource consumption flaw. The vulnerability resides in the outbound transmission subsystem, which serializes outgoing HTTP/2 frames. An unauthenticated attacker can remotely trigger memory exhaustion by abusing the protocol's automatic control frame exchange mechanisms, resulting in a complete denial of service.
In standard HTTP/2 configurations, servers and clients must process various connection-level control frames such as PING, SETTINGS, and WINDOW_UPDATE. These frames are treated with high priority to maintain connection health, handle flow control windows, and perform diagnostics. Because these operational frames operate below the application stream layer, they are processed and acknowledged automatically without standard stream-level backpressure limits.
The attack surface exists on any network-exposed endpoint utilizing the Ember HTTP/2 backend. Because the vulnerability lies within the library's protocol management layer, no specific application-level route or endpoint configuration is required to exploit it. The flaw exposes both public-facing servers (H2Server) and outbound client connections (H2Client) to remote disruption.
The technical root cause of CVE-2026-69213 lies in the selection of an unbounded queue container for buffering outbound HTTP/2 frames. Specifically, both H2Client and H2Server instantiate their outgoing frame buffers using cats.effect.std.Queue.unbounded. This queue is designed to store outbound frames before they are serialized and written to the network interface by a dedicated, asynchronous consumer fiber known as the writeLoop.
When a remote peer sends an HTTP/2 control frame, the server immediately constructs a corresponding response frame—such as a PING ACK or a SETTINGS acknowledgment—and appends it to this queue. This architecture functions correctly under normal network conditions where the consumer fiber can continuously drain the queue and write the data to the TCP socket. However, because the queue has no upper bound, there is no limit on the number of elements it can hold simultaneously.
If the remote peer maliciously pauses its socket reads (such as by setting its TCP window size to zero or simply refusing to read incoming TCP packets), the server's TCP send buffer quickly fills up. Once the socket buffer is saturated, the writeLoop fiber blocks on its next write operation. Despite the writer being blocked, the server continues to accept incoming control frames from the attacker over the established read path, processing them and pushing response frames into the outbound queue indefinitely. Because the queue lacks backpressure controls, it grows linearly with the attacker's inputs until the JVM heap space is entirely exhausted.
To understand the structural bug, we must analyze the instantiation of the outbound queue in the vulnerable vs. patched codebases of H2Server and H2Client.
In the vulnerable implementation, the queue is created using Queue.unbounded. The following code snippet shows the exact vulnerable line:
// Vulnerable queue creation in H2Server.scala and H2Client.scala
queue <- cats.effect.std.Queue.unbounded[F, Chunk[H2Frame]]Because this queue lacks a capacity limit, the producer fibers generating responses (e.g., PING responses) are never suspended. They continue to call queue.offer successfully, bypassing any potential memory-saving suspension mechanisms. Under load, this leads to rapid memory inflation.
To remediate this issue, the maintainers modified the queue initialization to use a bounded variant, establishing a threshold of 128 chunks. The patched code is shown below:
// Patched queue creation introducing a bound of 128 elements
queue <- cats.effect.std.Queue.bounded[F, Chunk[H2Frame]](128)By switching to Queue.bounded(128), the cats-effect library's cooperative multitasking model is leveraged. When the queue contains 128 chunks of frames and the writeLoop fiber is blocked by a stalled TCP socket, any subsequent call to queue.offer will semantically block (suspend) the calling producer fiber. This introduces natural backpressure, stopping the generation of new outbound frames until the socket is cleared and the queue is drained.
Exploitation of CVE-2026-69213 does not require authentication or specific environment configurations beyond an active HTTP/2 connection. The attack relies on establishing a stable TCP connection to the target server and executing a 'stalled reader' attack sequence.
First, the attacker establishes an HTTP/2 connection and performs the standard handshake. Next, the attacker configures their local socket settings to stop reading bytes from the target. This can be achieved by decreasing the TCP receive window size to zero or using socket options to stall the socket read buffer entirely. At this point, the target server's outbound queue begins accumulating frames because its writeLoop is unable to push data through the network socket.
Once the TCP stream is choked, the attacker continuously floods the target with high-velocity, lightweight HTTP/2 control frames such as PING frames. The target server processes each frame, produces an acknowledgment, and attempts to enqueue it. Because the writeLoop fiber is blocked, the queue size swells exponentially, generating a linear accumulation of Chunk[H2Frame] objects in heap memory. The attack is sustained until the JVM environment crashes due to a heap-exhaustion java.lang.OutOfMemoryError.
The primary impact of this vulnerability is a complete and sustained denial of service (DoS) of the affected JVM process. Because an OutOfMemoryError usually destabilizes the entire Java Virtual Machine, the application will crash, terminating all active connections and rendering the service unavailable to legitimate users. Recovery typically requires a manual or automated restart of the application container.
This vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High), with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The attack requires low complexity, can be initiated over the network by any unauthenticated entity, and demands no user interaction, resulting in a maximum rating for the Availability impact metric.
In client-side configurations where H2Client is utilized, the application is also vulnerable if it connects to an untrusted or compromised HTTP/2 upstream server. A malicious server can apply the identical socket-stalling technique and flood the client with control frames, causing the client-side Scala application to run out of memory and crash. This highlights the importance of patching both servers and outbound client integration libraries.
The primary remediation strategy is upgrading the http4s-ember-core dependency to a patched release. For users on the 0.23.x branch, the vulnerability is fully addressed in version 0.23.35. For applications adopting the 1.0.0 milestone releases, the fix is integrated into version 1.0.0-M47 and subsequent builds.
If immediate software upgrade is not feasible, several defensive workarounds can be implemented to mitigate the threat vector. First, if HTTP/2 is not strictly required by the application architecture, it can be disabled within the Ember server builder by omitting the withHttp2 parameter, reverting communications to standard HTTP/1.1 where this unbounded queue architecture is absent.
Additionally, deploying a robust reverse proxy or Load Balancer (such as Nginx, Envoy, or AWS Application Load Balancer) in front of the http4s application provides an effective mitigation layer. The reverse proxy will handle HTTP/2 protocol termination, manage the connection-level flow control windows, and enforce write timeouts, severing connections that attempt socket stalling before they can exhaust application-tier resources.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
http4s-ember-core http4s | < 0.23.35 | 0.23.35 |
http4s-ember-core http4s | >= 1.0.0-M1, < 1.0.0-M47 | 1.0.0-M47 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-400, CWE-770 |
| Attack Vector | Network |
| CVSS v3.1 | 7.5 (High) |
| Impact | Denial of Service (DoS) |
| Exploit Status | No Public Exploit Available |
| KEV Status | Not Listed |
The software does not properly control the allocation and maintenance of a limited resource, enabling an actor to influence the amount of resources consumed and exhaust them.
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`.
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.
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.
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.
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.
An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.