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

CVE-2026-67432: High Severity Denial of Service in Model Context Protocol (MCP) Ruby SDK

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 31, 2026·7 min read·35 visits

Executive Summary (TL;DR)

The `mcp` Ruby gem prior to 0.23.0 is vulnerable to unauthenticated, remote denial of service (OOM crash) due to unbounded HTTP body reading, unsafe JSON parsing depth, and unlimited standard input buffering.

An uncontrolled memory allocation vulnerability (CWE-770) exists in the Model Context Protocol (MCP) Ruby SDK (the `mcp` gem) prior to version 0.23.0. The SDK's StreamableHTTPTransport and StdioTransport layers fail to impose bounds on incoming payloads. An unauthenticated attacker can exploit these issues by transmitting massive, nested payloads to exhaust worker memory, leading to process termination.

Vulnerability Overview

The Model Context Protocol (MCP) is a protocol that facilitates secure integrations between Large Language Models (LLMs) and client environments. The MCP Ruby SDK (the mcp gem) provides the core primitives necessary to construct both MCP servers and client components. This SDK relies on distinct transport architectures, including HTTP-based request/response cycles (StreamableHTTPTransport) and standard input/output streams (StdioTransport). Because these transport layers interface directly with untrusted remote inputs, they form the primary attack surface of the application.

Prior to version 0.23.0, the mcp gem suffered from multiple resource validation omissions classified under CWE-770 (Allocation of Resources Without Limits or Throttling). Specifically, the transport handlers failed to inspect incoming request metadata or enforce physical constraints on the stream sizes before allocating memory blocks. Consequently, both remote and local actors could issue highly resource-intensive payloads, leading to rapid exhaustion of physical system memory.

This vulnerability introduces a High severity threat to availability. Exploitation results in immediate worker termination via the kernel's Out-Of-Memory (OOM) killer mechanism. Because these endpoints are commonly exposed to accept event-driven payloads from client applications, an unauthenticated network adversary can trigger the crash, generating an immediate and complete denial of service across the affected environment.

Root Cause Analysis

The underlying vulnerability is rooted in two distinct architectural transport pathways: the HTTP POST handling interface and the standard I/O processing loop. Each pathway fails to bound dynamic input aggregation, allowing untrusted actors to directly dictate heap allocation scales.

Within StreamableHTTPTransport (located at lib/mcp/server/transports/streamable_http_transport.rb), the server implements a handle_post method to process incoming HTTP POST request blocks. The application logic retrieves the raw body payload via request.body.read without passing a length limit argument or validating the value of the incoming HTTP Content-Length header. This forces the underlying Rack web server implementation to read and buffer the incoming socket stream until an End-Of-File (EOF) is encountered. When the input stream is massive, the Ruby engine attempts to construct an equivalently large contiguous string on the heap.

Following the raw string ingestion, the application passes the buffer to JSON.parse(body_string, symbolize_names: true). This operation exponentially multiplies memory consumption in three ways:

  1. Object graph amplification: Parsing a flat 100 MB JSON string constructs highly nested arrays and hashes, multiplying heap residency metrics by an estimated 3x to 5x.
  2. Symbol Table Exhaustion: The symbolize_names: true argument enforces the dynamic allocation of Ruby symbols for every key within the JSON payload. Dynamic symbols cannot be garbage collected efficiently, resulting in rapid Garbage Collection (GC) thrashing and high CPU utilization.
  3. Stack Exhaustion: The standard parser lacked explicit configuration restrictions for recursion depth, exposing the interpreter to stack crashes on deeply nested arrays or hashes.

In parallel, the standard input/output transport loop in StdioTransport ingested commands using the line-by-line reading method while @open && (line = $stdin.gets). Ruby's native IO#gets reads characters until it identifies the defined line terminator (\n). If a connected peer sends a stream of bytes containing no newline delimiters, the interpreter continuously appends the characters to an internal buffer. Memory usage increases proportionally with the duration of the stream, eventually causing host-wide memory exhaustion.

Code Analysis & Patch Inspection

To understand the vulnerability and its corresponding fix, we inspect the changes introduced in commit 772e0cb1f9db69312006926eee59a7287ad50166. The patch targets both HTTP and Stdio layers, wrapping the reads in explicit boundary checks.

In the HTTP transport layer, the developer defined new hard limits to govern request handling:

# File: lib/mcp/server/transports/streamable_http_transport.rb
 
# Default upper bound on the JSON-RPC request body to prevent worker OOM.
DEFAULT_MAX_REQUEST_BYTES = 4 * 1024 * 1024
 
# Conservative bound on JSON nesting depth to protect the parser stack.
MAX_JSON_NESTING = 64

The insecure request.body.read process was refactored. The application now evaluates the payload size through the newly introduced helper, read_bounded_body:

def read_bounded_body(request)
  content_length = request.content_length
  return if content_length && content_length.to_i > @max_request_bytes
 
  # Reads exactly max_request_bytes + 1 to detect dynamic overflow
  body = request.body.read(@max_request_bytes + 1)
  return "" if body.nil?
  return if body.bytesize > @max_request_bytes
 
  body
end

By requesting @max_request_bytes + 1 bytes, the system can detect overflow attempts even when the client spoofs or omits the Content-Length header (such as when using chunked transfer encoding). If the buffer size exceeds the threshold, the function immediately returns nil, aborting allocation.

Additionally, the JSON deserializer is restricted to the safe nesting depth:

def parse_request_body(body_string)
  JSON.parse(body_string, symbolize_names: true, max_nesting: MAX_JSON_NESTING)
rescue JSON::ParserError, TypeError
  raise InvalidJsonError
end

In the StdioTransport layer, the unconstrained gets call was refactored to limit maximum line lengths:

def read_line(method, params)
  line = @stdout.gets("\n", @max_line_bytes)
  return line unless line && !line.end_with?("\n") && line.bytesize >= @max_line_bytes
  # Error generation logic handles excess sizes immediately

This defensive logic effectively isolates the Ruby execution environment from resource depletion. The diagram below illustrates the input validation pipeline introduced in the patched version:

Exploitation Methodology

Exploiting CVE-2026-67432 requires zero authentication or special privileges. Since the HTTP POST handling path parses JSON requests before applying authentication hooks, any client with access to the endpoint can execute the attack.

An attacker targeting the HTTP interface can perform the following steps to trigger a denial of service:

  1. Establish a TCP socket connection to the targeted MCP server.
  2. Structure an HTTP POST request targeting the endpoint / with standard headers, but with an extremely large payload size (e.g., 512 MB).
  3. Populate the body of the request with a continuous block of nested JSON elements, or simple whitespace. Whitespace is equally effective as the vulnerable handler will allocate memory buffers for the raw string stream.
  4. Maintain the connection as the server processes the payload. As the server's thread reads the stream, the physical RAM usage of the process balloons rapidly. The process is then terminated by the Linux kernel OOM killer.

In localized configurations where the application leverages StdioTransport to communicate with client plugins, exploitation occurs through dynamic process communication. An untrusted plugin process can continuously write bytes to its stdout stream without inserting a newline (\n) character. The host program tries to accumulate this stream in memory, causing the parent process to exhaust its memory pool and crash.

Impact Assessment

The potential consequences of CVE-2026-67432 are severe for target availability. The CVSS base score of 7.5 highlights its potential impact as an unauthenticated remote exploit with low complexity.

When a worker process experiences an Out-Of-Memory condition, the operating system terminates the process immediately. In standard configurations, this termination causes an abrupt interruption of any ongoing transactions, user sessions, or LLM-driven actions. If the target environment does not employ process monitoring tools (like Systemd, Kubernetes liveness probes, or Supervisord) to auto-restart crashed processes, the application remains completely unavailable.

Even in environments configured to auto-restart, continuous exploitation (an attack loop) can lead to infinite crash cycles. This exhausts server processing resources, floods monitoring tools with alerts, and prevents any legitimate traffic from being processed. Additionally, because the memory consumption occurs during the raw read phase, it bypasses standard application-level logging, hindering post-incident forensic analysis.

Remediation and Detection

To address this vulnerability, security teams must upgrade the mcp gem to version 0.23.0 or later. This release introduces safe defaults (4 MiB limit) and nesting protections for both the HTTP and Stdio transport systems.

To update the dependency within a Bundler-managed Ruby application, modify the Gemfile:

gem 'mcp', '>= 0.23.0'

Following the modification, apply the update across the environment:

bundle update mcp

For deployments where immediate patching is not feasible, implement temporary mitigations on your reverse proxies or Web Application Firewalls (WAFs). For instance, configure Cloudflare or Nginx to limit client request bodies to 4 MiB on paths routed to MCP endpoints. This blocks large payloads before they reach the Ruby worker processes.

# Example Nginx restriction for MCP locations
location /mcp {
    client_max_body_size 4M;
    proxy_pass http://mcp_backend_server;
}

Official Patches

Model Context ProtocolGitHub Security Advisory GHSA-h669-8m4g-r2hc

Fix Analysis (1)

Technical Appendix

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

Affected Systems

Model Context Protocol Ruby SDK (mcp gem)

Affected Versions Detail

Product
Affected Versions
Fixed Version
mcp
Model Context Protocol
< 0.23.00.23.0
AttributeDetail
CWE IDCWE-770
Attack VectorNetwork
CVSS v3.1 Score7.5 (High)
EPSS Score0.00436 (35.87%)
ImpactDenial of Service (OOM Crash)
Exploit StatusProof-of-Concept
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact
CWE-770
Allocation of Resources Without Limits or Throttling

The software allocates memory or other resources on behalf of an untrusted actor without checking or enforcing limits on the requested allocation size.

Vulnerability Timeline

Initial bounding patch draft for standard I/O streams introduced.
2026-06-02
HTTP transport buffer starvation vulnerability identified and fixed via commit 772e0cb1f9db69312006926eee59a7287ad50166.
2026-07-07
MCP Ruby SDK version 0.23.0 published to Rubygems.
2026-07-07
Advisory GHSA-h669-8m4g-r2hc publicly disclosed and CVE-2026-67432 assigned.
2026-07-29

References & Sources

  • [1]GitHub Advisory GHSA-h669-8m4g-r2hc
  • [2]Security Fix Commit
  • [3]v0.23.0 Release Notes
  • [4]CVE Record on CVE.org
  • [5]NVD Vulnerability Detail

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

•about 2 hours ago•CVE-2026-63304
8.1

CVE-2026-63304: OS Command Injection in WWBN AVideo via listFFmpegProcesses

WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.

Alon Barad
Alon Barad
3 views•9 min read
•about 3 hours ago•CVE-2026-59726
10.0

CVE-2026-59726: Unauthenticated Remote Code Execution in Ruflo MCP Bridge

Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.

Alon Barad
Alon Barad
6 views•2 min read
•about 4 hours ago•CVE-2026-59818
6.5

CVE-2026-59818: Improper Certificate Revocation List (CRL) Validation on Split gRPC Listeners in etcd

In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 5 hours ago•CVE-2026-59831
4.4

CVE-2026-59831: Remote Code Execution via Unvalidated URL Scheme Handling in GitHub CLI

GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.

Alon Barad
Alon Barad
11 views•9 min read
•about 6 hours ago•CVE-2026-59191
6.9

CVE-2026-59191: Path Traversal and Arbitrary File Read in CakePHP TwigView FileLoader

A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.

Alon Barad
Alon Barad
5 views•9 min read
•about 7 hours ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
9 views•10 min read