CVE-2026-54427: Apache bRPC: Stack Exhaustion via Unbounded Recursion in AMF Parser

Published Oct 21, 2026
·
Updated

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 amfmaxdepth are rejected after applying the fix.

Affected Software

1 affected component
Apache bRPC<1.18.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache bRPC to a version that resolves this vulnerability.

    Fixed in 1.18.0
  2. Configuration

    Configure the AMF nesting depth limit amf_max_depth to 128; AMF objects or arrays deeper than this limit are rejected.

    Apache bRPC AMF parser amf_max_depth = 128

Event History

Oct 21, 2026
CVE Published
via MITRE·11:36 AM
Data Sourced
via MITRE·11:36 AM
DescriptionWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using bRPC RTMP support that parse AMF from untrusted RTMP peers are exposed. This includes RTMP servers processing client command messages, RTMP clients processing server responses or status messages, and either side processing inbound AMF metadata or cue points; direct callers of ReadAMFObject or ReadAMFArray on untrusted input are also affected.

2

What must an attacker be able to do to trigger the crash?

An attacker must be able to act as an untrusted RTMP peer, or otherwise supply untrusted input to ReadAMFObject or ReadAMFArray. They can send AMF objects or arrays nested deeply enough to exhaust the process's native stack.

3

Are installations protected by default after upgrading?

Yes. The fix introduces a configurable AMF nesting-depth limit whose default value is 128, and AMF objects or arrays deeper than amf_max_depth are rejected.

4

What can be done if an immediate upgrade is not possible?

Apply the patch from PR 3344. The provided data does not specify another mitigation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203