CVE-2026-56387 Apache bRPC: Remote Memory Exhaustion in RTMP AMF Parser

Not scored Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-56387?

CVE-2026-56387 is a vulnerability in Apache bRPC, published on 21 Oct 2026.

Official 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.

Weakness: CWE-789, CWE-770

Which versions are affected by CVE-2026-56387?

How do I fix CVE-2026-56387?

No fix has been published for CVE-2026-56387 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-56387 being exploited?

There is no known exploitation of CVE-2026-56387 in the wild and no public exploit code.

Sources

Also known as GHSA-79v7-r95h-fxr5.

Is CVE-2026-56387 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free