7.5high
Apache bRPC: Stack Exhaustion via Unbounded Recursion in AMF Parser
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.51% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
Description
Uncontrolled recursion in the AMF parser in Apache bRPC < 1.18.0 allows a remote RTMP peer to crash a bRPC process by sending deeply nested AMF objects or arrays. The parser recursively processed nested AMF containers without enforcing a depth limit, which could exhaust the native stack. Affected Scenarios: Applications using bRPC RTMP support and parsing AMF data from an untrusted RTMP peer. This includes RTMP servers parsing client command messages, RTMP clients parsing server responses or status messages, and either side parsing inbound AMF script data such as metadata or cue points. Direct callers of ReadAMFObject or ReadAMFArray on untrusted input are also affected. How to Fix: 1. Upgrade Apache bRPC to 1.18.0. 2. Apply the patch from PR https://github.com/apache/brpc/pull/3344 . Note: The fix introduces a configurable AMF nesting depth limit with default value 128. AMF objects or arrays deeper than amf_max_depth are rejected after applying the fix.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| apache/brpc | before 1.18.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Uncontrolled recursion in the AMF parser in Apache bRPC < 1.18.0 allows a remote RTMP peer to crash a bRPC process by sending deeply nested AMF objects or arrays. The parser recursively processed nested AMF containers without enforcing a depth limit, which could exhaust the native stack. Affected Scenarios: Applications using bRPC RTMP support and parsing AMF data from an untrusted RTMP peer. This includes RTMP servers parsing client command messages, RTMP clients parsing server responses or status messages, and either side parsing inbound AMF script data such as metadata or cue points. Direct callers of ReadAMFObject or ReadAMFArray on untrusted input are also affected. How to Fix: 1. Upgrade Apache bRPC to 1.18.0. 2. Apply the patch from PR https://github.com/apache/brpc/pull/3344 . Note: The fix introduces a configurable AMF nesting depth limit with default value 128. AMF objects or arrays deeper than amf_max_depth are rejected after applying the fix.
NVD (es)
Recursión no controlada en el analizador AMF de Apache bRPC versiones anteriores a 1.18.0 permite que un par RTMP remoto provoque la caída de un proceso bRPC enviando objetos o matrices AMF profundamente anidados. El analizador procesaba recursivamente contenedores AMF anidados sin imponer un límite de profundidad, lo que podía agotar la pila nativa.\n\nEscenarios afectados:\nAplicaciones que utilizan el soporte RTMP de bRPC y analizan datos AMF de un par RTMP no confiable. Esto incluye servidores RTMP que analizan mensajes de comando del cliente, clientes RTMP que analizan respuestas o mensajes de estado del servidor, y cualquiera de las partes que analice datos de script AMF entrantes, como metadatos o puntos de referencia. También se ven afectados los llamadores directos de?ReadAMFObject?o?ReadAMFArray?sobre entrada no confiable.\n\nCómo solucionar:\n1. Actualice Apache bRPC a la versión 1.18.0. \n2. Aplique el parche del PR https://github.com/apache/brpc/pull/3344.\n\nNota:\nLa corrección introduce un límite configurable de profundidad de anidamiento AMF con un valor predeterminado de 128. Los objetos o matrices AMF con una profundidad mayor que?amf_max_depth?son rechazados después de aplicar la corrección.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54427 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2026-54427 changed 2026-10-30 | Public domain |