Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-58064 Overview
CVE-2026-58064 is a denial-of-service vulnerability in the Redis protocol implementation of Apache bRPC. The Redis inline command parser allocated memory based on the current input buffer size and copied the entire buffer before locating a CRLF terminator. A remote attacker with network access to a Redis-protocol bRPC service can send long inline inputs without a terminating CRLF to drive memory consumption and CPU copy overhead. The existing redis_max_allocation_size limit protected RESP bulk strings and arrays, but did not cover the inline command path before allocation. The weakness is tracked as CWE-770: Allocation of Resources Without Limits or Throttling.
Critical Impact
Unauthenticated remote attackers can exhaust server memory and CPU on bRPC services exposing the Redis protocol, leading to denial of service.
Affected Products
- Apache bRPC versions prior to 1.18.0
- Deployments with the Redis protocol handler enabled
- bRPC Redis-protocol endpoints reachable by untrusted clients
Discovery Timeline
- 2026-10-21 - CVE-2026-58064 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-58064
Vulnerability Analysis
Apache bRPC supports the Redis Serialization Protocol (RESP), which accepts both structured bulk-string arrays and legacy inline commands. The inline command path in the parser handled buffered bytes before confirming a complete command boundary. When data arrived without a terminating \r\n, the parser allocated arena memory sized to the current connection buffer and copied the buffer contents into it. This behavior turned every unterminated inline payload into a server-side allocation and memcpy proportional to the attacker-controlled input length.
The redis_max_allocation_size guard constrained allocations for RESP bulk strings and multi-bulk arrays, but the inline command path bypassed that limit prior to allocation. Repeated or large unterminated writes amplified both heap pressure and CPU cycles consumed by buffer copies.
Root Cause
The root cause is unbounded resource allocation in the Redis inline command parser. The parser decided allocation size from the raw connection buffer length instead of from a validated, CRLF-delimited command boundary. Because redis_max_allocation_size was not applied before this allocation, the parser trusted attacker-supplied input length for sizing its arena.
Attack Vector
An attacker establishes a TCP connection to the bRPC Redis endpoint and streams arbitrary bytes without sending \r\n. The server repeatedly reallocates and copies its growing inline buffer. Multiple concurrent connections multiply the impact, producing memory exhaustion and sustained CPU usage sufficient to degrade or stop service. No authentication is required when the Redis protocol listener is reachable.
See the Apache bRPC mailing list advisory for the upstream disclosure details.
Detection Methods for CVE-2026-58064
Indicators of Compromise
- Sustained TCP sessions to Redis-protocol bRPC ports that transmit data without any \r\n sequences
- Rapid growth of resident memory in bRPC server processes correlated with Redis listener traffic
- Elevated CPU time in parser and buffer-copy functions on bRPC worker threads
- Connection patterns from untrusted sources that hold sockets open while streaming large payloads
Detection Strategies
- Inspect network telemetry for Redis-protocol flows with abnormally large request sizes and no command delimiters
- Alert on bRPC process memory growth that exceeds historical baselines without matching request completion counts
- Correlate connection duration, bytes received, and completed Redis commands to surface low-completion, high-volume sessions
Monitoring Recommendations
- Export bRPC server metrics for connection buffer sizes, allocation counts, and rejected commands
- Monitor file descriptor and heap usage on hosts running bRPC Redis listeners
- Capture packet samples at the Redis listener to validate that inbound streams contain well-formed, CRLF-terminated commands
How to Mitigate CVE-2026-58064
Immediate Actions Required
- Upgrade Apache bRPC to version 1.18.0 or later on all hosts exposing the Redis protocol
- Restrict network access to bRPC Redis endpoints so that only trusted clients can connect
- Review redis_max_allocation_size configuration and set it to a value appropriate for expected command sizes
- Audit logs and metrics for prior resource exhaustion events that may indicate exploitation attempts
Patch Information
The fix ships in Apache bRPC 1.18.0. The patch applies redis_max_allocation_size to Redis inline command lines and scans for \r\n before allocating parser arena memory. Inline command lines exceeding the configured limit are rejected. The upstream change is available in Apache bRPC PR #3363.
Workarounds
- Disable the Redis protocol listener on bRPC services that do not require it
- Place bRPC Redis endpoints behind a reverse proxy or firewall that enforces request size and idle timeout limits
- Terminate connections that remain open without delivering a complete command within a short timeout
- Apply per-source connection rate limits to reduce the amplification potential of unterminated streams
# Configuration example: enforce an inline command size ceiling and upgrade
# 1. Upgrade Apache bRPC
git checkout 1.18.0
# 2. Launch bRPC server with a conservative Redis allocation limit (bytes)
./your_brpc_server --redis_max_allocation_size=65536
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

