Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-84727 Overview
CVE-2026-84727 is a use-after-free vulnerability [CWE-416] in the Real-Time Messaging Protocol (RTMP) implementation of Apache bRPC versions prior to 1.18.0. A malicious RTMP peer can crash the bRPC process or corrupt memory by sending a crafted Abort control message. The flaw affects any application that uses the bRPC rtmp policy as either an RTMP server or client when the remote endpoint is untrusted. Exploitation requires the attacker to target a chunk stream identifier that the victim is concurrently using to send data. The vulnerability was disclosed through the Apache bRPC project and resolved in the 1.18.0 release.
Critical Impact
A remote RTMP peer can trigger a use-after-free on an RtmpChunkStream object, causing process crashes or memory corruption that may lead to further exploitation.
Affected Products
- Apache bRPC versions prior to 1.18.0
- Applications embedding the bRPC rtmp policy as an RTMP server
- Applications embedding the bRPC rtmp policy as an RTMP client
Discovery Timeline
- 2026-10-21 - CVE-2026-84727 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-84727
Vulnerability Analysis
The vulnerability resides in Apache bRPC's RTMP protocol handler, specifically in how it processes Abort control messages (RTMP protocol control message type 2). When the handler receives an Abort message, it deletes the referenced RtmpChunkStream object immediately. Concurrently, sender threads traverse the same chunk stream through RtmpUnsentMessage::AppendAndDestroySelf and RtmpChunkStream::SerializeMessage to serialize outgoing messages. These two paths share no synchronization primitive.
An attacker who controls an RTMP peer can send an Abort message naming a chunk stream identifier that the victim is actively using for outbound serialization. The receive path frees the stream object while the send path still dereferences it. The result is a use-after-free condition with outcomes ranging from denial of service through process crash to memory corruption that may enable further exploitation.
A secondary defect compounds the issue. Deleting the chunk stream discards its previous message header. Subsequent compressed type-3 chunk headers on that stream can no longer be decoded correctly, degrading protocol state consistency.
Root Cause
The root cause is missing synchronization between the RTMP receive path that destroys RtmpChunkStream objects and the sender path that serializes messages on the same object. The code treats chunk stream destruction as a local operation while concurrent threads retain references to the stream.
Attack Vector
Exploitation requires network access to an application exposing bRPC's RTMP implementation. The attacker, acting as the remote RTMP peer, sends a crafted Abort control message referencing a chunk stream identifier that the victim is simultaneously using to send data. No special privileges beyond an established RTMP session are required.
No verified public proof-of-concept code is available. See the Apache bRPC pull request for the technical fix and the Apache mailing list thread for additional context.
Detection Methods for CVE-2026-84727
Indicators of Compromise
- Unexpected crashes or segmentation faults in bRPC processes handling RTMP traffic, particularly with stack frames referencing RtmpChunkStream::SerializeMessage or RtmpUnsentMessage::AppendAndDestroySelf.
- RTMP sessions in which a remote peer sends Abort control messages (type 2) targeting chunk stream identifiers that the server or client is actively using for outbound traffic.
- Protocol decode failures on type-3 compressed chunk headers immediately following an Abort message on the same chunk stream.
Detection Strategies
- Deploy runtime memory safety tooling such as AddressSanitizer in staging to catch use-after-free conditions in RTMP sessions before production exposure.
- Capture and inspect RTMP traffic for Abort messages originating from untrusted peers and correlate with crash telemetry on the server.
- Monitor process restart rates and core dump generation on hosts running bRPC-based RTMP services.
Monitoring Recommendations
- Alert on repeated process terminations of bRPC services that coincide with inbound RTMP connections from external sources.
- Log all RTMP control message types received per peer and flag anomalous Abort message frequency.
- Track installed bRPC versions across the fleet to confirm which hosts remain below 1.18.0.
How to Mitigate CVE-2026-84727
Immediate Actions Required
- Upgrade Apache bRPC to version 1.18.0 or later on all hosts running the rtmp policy.
- If immediate upgrade is not feasible, apply the upstream patch from apache/brpc pull request #3515 and rebuild affected binaries.
- Restrict network exposure of RTMP endpoints to trusted peers until patches are deployed.
Patch Information
The Apache bRPC project fixed CVE-2026-84727 in version 1.18.0. The patch adds synchronization between the RTMP receive and send paths so that an inbound Abort message cannot free an RtmpChunkStream object while another thread is still serializing messages on it. The fix is available in pull request #3515.
Workarounds
- Place RTMP services behind an authenticating proxy or firewall rule that limits connections to known-good peers.
- Disable the bRPC rtmp policy in applications that do not require RTMP functionality.
- Terminate RTMP sessions from peers that transmit malformed or unexpected Abort control messages.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

