CVE-2026-56388

The Redis server command parser in Apache bRPC accepts an empty RESP array as a command header. A remote unauthenticated attacker who can reach a bRPC server with Redis service enabled can send an empty array header followed by a bulk string, causing an out-of-bounds write in the parser and crashing the process. Root Cause: RedisCommandParser::ConsumeImpl rejected negative RESP array counts but accepted zero. It resized the command argument vector to zero elements and continued parsing. When a following bulk string was parsed, the only index guard was a CHECK. In configurations where fatal logs do not abort immediately, execution could continue and write to _args[0] even though the vector was empty. Affected Scenarios: Deployments that enable ServerOptions.redis_service and accept Redis protocol traffic from untrusted clients. The issue is reached during parsing before command handling or authentication. How to Fix: 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3354 Note: The fix rejects empty RESP arrays as invalid Redis commands and replaces the internal index CHECK with an explicit parse error so malformed command streams cannot fall through to an indexed vector write.
Configurations

No configuration.

History

30 Oct 2026, 14:17

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.1

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) El analizador de comandos del servidor Redis en Apache bRPC acepta un arreglo RESP vacío como encabezado de comando. Un atacante remoto no autenticado que pueda alcanzar un servidor bRPC con el servicio Redis habilitado puede enviar un encabezado de arreglo vacío seguido de una cadena bulk, provocando una escritura fuera de límites en el analizador y el bloqueo del proceso.\n\nCausa raíz:\nRedisCommandParser::ConsumeImpl rechazó recuentos de arreglos RESP negativos pero aceptó cero. Redimensionó el vector de argumentos del comando a cero elementos y continuó el análisis. Cuando se analizó una cadena bulk posterior, la única protección de índice era un CHECK. En configuraciones donde los registros fatales no abortan inmediatamente, la ejecución podría continuar y escribir en _args[0] aunque el vector estuviera vacío.\n\nEscenarios afectados:\nImplementaciones que habilitan ServerOptions.redis_service y aceptan tráfico del protocolo Redis de clientes no confiables. El problema se alcanza durante el análisis antes del manejo del comando o la autenticación.\n\nCómo solucionar:\n1. Actualizar bRPC a la versión 1.18.0, que corrige este problema.\n2. Aplicar este parche: https://github.com/apache/brpc/pull/3354\n\nNota:\nLa corrección rechaza los arreglos RESP vacíos como comandos Redis no válidos y reemplaza el CHECK interno de índice por un error de análisis explícito, de modo que los flujos de comandos malformados no puedan pasar a una escritura en un vector indexado.

21 Oct 2026, 12:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-21 12:17

Updated : 2026-10-30 14:17


NVD link : CVE-2026-56388

Mitre link : CVE-2026-56388

CVE.ORG link : CVE-2026-56388


JSON object : View

Products Affected

No product.

CWE
CWE-252

Unchecked Return Value

CWE-617

Reachable Assertion

CWE-787

Out-of-bounds Write