Advisory [CVE-2026-56387] The RTMP AMF parser in Apache bRPC accepts AMF string lengths and array counts directly from untrusted input
This security Apache Software Foundation advisory covers CVE-2026-56387; related products: Apache bRPC.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published Record updated
Android app · Google Play
Monitor future Apache Software Foundation CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Summary
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:
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.
- Apache bRPC before 1.18.0
Official advisory · medium-confidence parse· fetched 1 hour ago·verify at source
- 1.18.0
Official advisory · medium-confidence parse· fetched 1 hour ago·verify at source
Mitigation checklist
- Affected Scenarios: Deployments that enable the bRPC RTMP server component and accept RTMP traffic from untrusted clients.
- Upgrade bRPC to version 1.18.0, which fixes this issue.
- Apply this patch: https://github.com/apache/brpc/pull/3353 Note: The fix introduces configurable AMF parsing limits.
Official advisory · medium-confidence parse· fetched 1 hour ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.