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.
Published: 2026-10-21
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

Uncontrolled recursion in the AMF parser of Apache bRPC allows a remote RTMP peer to send deeply nested AMF objects or arrays that cause the parser to traverse without a depth limit, exhausting the native stack and crashing the bRPC process. The resulting crash leads to a denial of service for the affected application, interrupting any RTMP server or client that relies on bRPC for AMF data handling. Because the bug is triggered by untrusted AMF input, any inbound AMF script data from a malicious peer can exploit the flaw.

Affected Systems

The vulnerability affects Apache bRPC versions earlier than 1.18.0, shipped by the Apache Software Foundation. Systems using bRPC RTMP support that parse AMF data from untrusted RTMP peers, including RTMP servers processing client command messages, RTMP clients parsing server responses, or either side handling inbound AMF script data such as metadata or cue points, are in scope.

Risk and Exploitability

The issue is exploitable by an attacker who can establish a connection to a bRPC-enabled RTMP endpoint and send crafted AMF payloads; the attack vector is therefore remote network access to the RTMP service. An EPSS score of < 1% and the vulnerability is not listed in the CISA KEV catalog, but the lack of a stack depth guard indicates a high likelihood of successful denial-of-service exploitation once an untrusted peer supplies an excessively nested payload. Based on the description, it is inferred that no authentication or privilege checks are required beyond the ability to transmit AMF data.

Generated by OpenCVE AI on October 30, 2026 at 16:28 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache bRPC to version 1.18.0 or later, which introduces a configurable AMF nesting depth limit with a default of 128.
  • If an immediate patch cannot be applied, manually apply the patch from PR https://github.com/apache/brpc/pull/3344 to enforce the depth limit.
  • After patching, consider configuring a lower amf_max_depth value or restricting RTMP traffic to trusted peers to mitigate the risk of accidental or malicious nested payloads.

Generated by OpenCVE AI on October 30, 2026 at 16:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache brpc
Vendors & Products Apache
Apache brpc

Wed, 21 Oct 2026 12:00:00 +0000

Type Values Removed Values Added
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.
Title Apache bRPC: Stack Exhaustion via Unbounded Recursion in AMF Parser
Weaknesses CWE-674
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-30T13:54:26.962Z

Reserved: 2026-06-14T07:59:33.683Z

Link: CVE-2026-54427

cve-icon Vulnrichment

Updated: 2026-10-30T13:52:25.429Z

cve-icon NVD

Status : Deferred

Published: 2026-10-21T12:17:21.290

Modified: 2026-10-30T14:17:06.303

Link: CVE-2026-54427

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T16:30:16Z

Weaknesses