{"id":"CVE-2026-58064","aliases":["CVE-2026-58064"],"related":[],"kind":"vulnerability","state":"published","title":"Apache bRPC: Denial of Service via Unbounded Redis Inline Command Allocation","summary":"The Redis protocol implementation in Apache bRPC allowed inline command parsing to allocate and copy the full connection buffer before a complete CRLF-terminated command was available. A remote attacker with access to a Redis-protocol bRPC service could send long inline inputs without a terminating CRLF to increase memory usage and CPU copy overhead, potentially causing denial of service.\n\n\nRoot Cause:\nThe Redis inline command parser allocated memory based on the current input buffer size and copied the entire buffer before determining the current inline command boundary. The existing redis_max_allocation_size limit was applied to RESP bulk strings and arrays, but not effectively to the inline command path before allocation.\n\n\nAffected Scenarios:\nUse Apache bRPC server with Redis protocol enabled and reachable by untrusted clients.\n\n\nHow to Fix:\n1. Upgrade Apache bRPC to version 1.18.0, which fixes this issue.\n2. Apply the patch from PR  https://github.com/apache/brpc/pull/3363 .\n\n\nNote:\nThe fix applies redis_max_allocation_size to Redis inline command lines and scans for CRLF before allocating parser arena memory. Inline command lines exceeding this limit are rejected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Redis protocol implementation in Apache bRPC allowed inline command parsing to allocate and copy the full connection buffer before a complete CRLF-terminated command was available. A remote attacker with access to a Redis-protocol bRPC service could send long inline inputs without a terminating CRLF to increase memory usage and CPU copy overhead, potentially causing denial of service.\n\n\nRoot Cause:\nThe Redis inline command parser allocated memory based on the current input buffer size and copied the entire buffer before determining the current inline command boundary. The existing redis_max_allocation_size limit was applied to RESP bulk strings and arrays, but not effectively to the inline command path before allocation.\n\n\nAffected Scenarios:\nUse Apache bRPC server with Redis protocol enabled and reachable by untrusted clients.\n\n\nHow to Fix:\n1. Upgrade Apache bRPC to version 1.18.0, which fixes this issue.\n2. Apply the patch from PR  https://github.com/apache/brpc/pull/3363 .\n\n\nNote:\nThe fix applies redis_max_allocation_size to Redis inline command lines and scans for CRLF before allocating parser arena memory. Inline command lines exceeding this limit are rejected.","source":"cvelist"},{"lang":"es","text":"La implementación del protocolo Redis en Apache bRPC permitía el análisis de comandos en línea que asignaba y copiaba todo el búfer de conexión antes de que estuviera disponible un comando completo terminado en CRLF. Un atacante remoto con acceso a un servicio bRPC que expone el protocolo Redis podría enviar entradas largas en línea sin un CRLF de terminación para aumentar el uso de memoria y la sobrecarga de copia de CPU, lo que potencialmente provocaría una denegación de servicio.\\n\\nCausa raíz:\\nEl analizador de comandos en línea de Redis asignaba memoria basándose en el tamaño actual del búfer de entrada y copiaba todo el búfer antes de determinar el límite del comando en línea actual. El límite existente redis_max_allocation_size se aplicaba a cadenas y arreglos bulk de RESP, pero no de manera efectiva a la ruta de comandos en línea antes de la asignación.\\n\\nEscenarios afectados:\\nUso del servidor Apache bRPC con el protocolo Redis habilitado y accesible por clientes no confiables.\\n\\nCómo corregir:\\n1. Actualizar Apache bRPC a la versión 1.18.0, que corrige este problema.\\n2. Aplicar el parche del PR https://github.com/apache/brpc/pull/3363 .\\n\\nNota:\\nLa corrección aplica redis_max_allocation_size a las líneas de comandos en línea de Redis y verifica la presencia de CRLF antes de asignar memoria al área del analizador. Las líneas de comandos en línea que superen este límite son rechazadas.","source":"nvd"}],"published":"2026-10-21T11:41:13.666Z","modified":"2026-10-30T14:17:06.840Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.18.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache bRPC","package":"apache/brpc","source":"cvelist"}],"references":[{"url":"https://lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["73Lab of Qingteng.cn"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-30T13:59:03.634Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58064","url":"https://www.cve.org/CVERecord?id=CVE-2026-58064","licence":"CVE Terms of Use","modified":"2026-10-30T14:05:38.961Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58064","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58064","licence":"Public domain","modified":"2026-10-30T14:17:06.840Z"}],"updatedAt":"2026-11-25T22:59:46.580Z","epss":{"score":0.0057,"percentile":0.48548,"date":"2026-12-01T12:00:22.000Z"}}