Description
The RTMP AMF parser in Apache bRPC accepts AMF string lengths and array counts directly from untrusted input. A remote unauthenticated attacker who can reach a bRPC server with RTMP enabled can send a small AMF payload with an excessive declared long string length or array count, causing excessive memory allocation or resource consumption before the parser rejects the incomplete payload.

Root Cause:
The AMF long string parser resized the destination string to the declared 32-bit length before validating that the stream contained that many bytes. ECMA array and strict array parsers also accepted 32-bit element counts without a configurable upper bound.

Affected Scenarios:
Deployments that enable the bRPC RTMP server component and accept RTMP traffic from untrusted clients. Direct uses of the AMF parser on untrusted data are also affected.

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/3353

Note:
The fix introduces configurable AMF parsing limits. The default maximum string size is 64 MiB and the default maximum array element count is 1,048,576. Payloads above these limits are rejected. The limits can be adjusted with amf_max_string_size and amf_max_array_size.
Published: 2026-10-21
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via Remote Memory Exhaustion
Action: Immediate Patch
AI Analysis

Impact

The RTMP AMF parser in Apache bRPC unconditionally reads declared string lengths and array element counts from untrusted input without first validating that the data contains that many bytes. An attacker can therefore send a small AMF payload that specifies an excessively large string length or array count. The parser then attempts to allocate a proportionally large amount of memory or resources before rejecting the packet, leading to resource exhaustion or a process crash. This flaw is a classic case of excessive resource allocation (CWE‑770) and unchecked memory allocation (CWE‑789).

Affected Systems

Deployments running Apache bRPC with the RTMP server component enabled and accepting traffic from untrusted clients are affected. Direct use of the AMF parser on external data is also vulnerable. All versions prior to 1.18.0 are impacted; the issue is fixed in bRPC 1.18.0, which introduces configurable limits on string size (default 64 MiB) and array element count (default 1,048,576).

Risk and Exploitability

The vulnerability can be triggered remotely over the network with simple AMF traffic and requires no authentication, making it a straightforward denial‑of‑service vector. With a CVSS score of 7.5 the flaw is rated high severity. The EPSS score is reported as < 1 %, indicating a very low probability of exploitation in the current data set, and the vulnerability is not listed in CISA KEV. Nevertheless, the impact could bring a bRPC service down if not mitigated, so the risk remains significant.

Generated by OpenCVE AI on October 30, 2026 at 16:27 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 implements safe AMF size limits.
  • If a quick upgrade is unavailable, apply the patch from https://github.com/apache/brpc/pull/3353 to add the limits.
  • Configure amf_max_string_size and amf_max_array_size to tighter thresholds if using an older version or for additional protection.
  • Optionally disable the RTMP server component or restrict it to trusted clients to eliminate exposure to untrusted AMF traffic.

Generated by OpenCVE AI on October 30, 2026 at 16:27 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'}


Thu, 22 Oct 2026 15:30: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 The RTMP AMF parser in Apache bRPC accepts AMF string lengths and array counts directly from untrusted input. A remote unauthenticated attacker who can reach a bRPC server with RTMP enabled can send a small AMF payload with an excessive declared long string length or array count, causing excessive memory allocation or resource consumption before the parser rejects the incomplete payload. Root Cause: The AMF long string parser resized the destination string to the declared 32-bit length before validating that the stream contained that many bytes. ECMA array and strict array parsers also accepted 32-bit element counts without a configurable upper bound. Affected Scenarios: Deployments that enable the bRPC RTMP server component and accept RTMP traffic from untrusted clients. Direct uses of the AMF parser on untrusted data are also affected. 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/3353 Note: The fix introduces configurable AMF parsing limits. The default maximum string size is 64 MiB and the default maximum array element count is 1,048,576. Payloads above these limits are rejected. The limits can be adjusted with amf_max_string_size and amf_max_array_size.
Title Apache bRPC: Remote Memory Exhaustion in RTMP AMF Parser
Weaknesses CWE-770
CWE-789
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-30T13:56:20.160Z

Reserved: 2026-06-21T04:46:23.974Z

Link: CVE-2026-56387

cve-icon Vulnrichment

Updated: 2026-10-30T13:55:48.735Z

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-56387

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

  • CWE-789

    Memory Allocation with Excessive Size Value