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-74758 Overview
CVE-2026-74758 is a heap use-after-free vulnerability [CWE-416] in the Real-Time Messaging Protocol (RTMP) component of Apache bRPC versions prior to 1.18.0. A remote, unauthenticated attacker can crash a bRPC RTMP server by sending a crafted RTMP Abort control message. The vulnerability requires no authentication and no application-level request, making exploitation straightforward against any bRPC server that enables RTMP support and accepts connections from untrusted networks.
Critical Impact
Unauthenticated remote attackers can crash Apache bRPC RTMP servers by sending a single crafted Abort control message, causing denial of service.
Affected Products
- Apache bRPC versions prior to 1.18.0
- bRPC servers with ServerOptions.rtmp_service configured
- Applications exposing RTMP endpoints to untrusted networks
Discovery Timeline
- 2026-10-21 - CVE-2026-74758 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-74758
Vulnerability Analysis
The flaw resides in the RTMP chunk stream handling path of Apache bRPC. The RTMP protocol multiplexes application data over logical chunk streams, and the Abort control message instructs the receiver to discard a partially received message on a given chunk stream. In vulnerable bRPC versions, the implementation fails to account for the case where the Abort message targets the very chunk stream that is currently being processed.
When a remote attacker sends an Abort control message naming the active chunk stream, the server destroys the object whose code is still executing on the call stack. Subsequent member accesses after the handler returns operate on freed heap memory, producing a classic use-after-free condition that typically terminates the server process.
Root Cause
The root cause lies in RtmpChunkStream::OnAbortMessage, which invokes RtmpContext::ClearChunkStream to delete the targeted RtmpChunkStream instance. When the Abort message references the chunk stream carrying the message itself, the deletion occurs while that stream's Feed() method is still running on the stack. After OnAbortMessage returns, Feed() resumes and dereferences members of the already-freed object, corrupting heap state and crashing the process.
Attack Vector
Exploitation requires only network reachability to a bRPC RTMP listener. The attacker opens an RTMP connection, begins a message exchange on a chunk stream, and injects an Abort control message naming that same chunk stream ID. No authentication, handshake negotiation beyond standard RTMP, or application-level request is required to trigger the condition.
Because the Abort message is part of the RTMP control protocol handled before any application logic, exposure depends solely on whether the bRPC server has RTMP enabled and reachable. Public-facing streaming infrastructure built on bRPC is the primary target profile. Detailed technical discussion is available in the Apache Mailing List Discussion.
Detection Methods for CVE-2026-74758
Indicators of Compromise
- Unexpected crashes or restarts of bRPC server processes with RTMP enabled
- Core dumps showing use-after-free faults inside RtmpChunkStream::Feed or related RTMP handling functions
- Inbound RTMP connections quickly followed by control message type 0x02 (Abort) before any application traffic
- Repeated short-lived RTMP sessions from the same source address terminating in server failure
Detection Strategies
- Deploy process-crash monitoring on hosts running bRPC with rtmp_service enabled and alert on repeated faults
- Inspect RTMP traffic at network boundaries for Abort control messages targeting chunk stream IDs that match the carrier chunk stream
- Correlate server restart events with preceding RTMP connections from external sources to identify likely exploitation attempts
Monitoring Recommendations
- Ingest bRPC server logs, crash telemetry, and network flow data into a centralized analytics platform for correlation
- Baseline normal RTMP client behavior and alert on anomalous Abort message volumes
- Monitor exposed RTMP ports for connections from untrusted address ranges and track session lifetimes
How to Mitigate CVE-2026-74758
Immediate Actions Required
- Upgrade Apache bRPC to version 1.18.0 or later on all servers that enable RTMP
- If immediate patching is not possible, restrict access to RTMP listener ports using network ACLs or firewalls
- Audit deployments for any use of ServerOptions.rtmp_service and inventory internet-facing instances
- Review crash and restart history on bRPC RTMP servers for signs of prior exploitation attempts
Patch Information
The fix is available in Apache bRPC 1.18.0 and in the upstream pull request apache/brpc#3452. The patch modifies RtmpChunkStream::OnAbortMessage to skip clearing the chunk stream when the Abort message targets the chunk stream currently being parsed, preventing deletion of the object while Feed() is still executing on it.
Workarounds
- Disable the RTMP service by removing ServerOptions.rtmp_service configuration if the protocol is not required
- Place bRPC RTMP endpoints behind an authenticated reverse proxy or VPN to prevent untrusted access
- Apply upstream patch apache/brpc#3452 to deployments that cannot immediately upgrade to 1.18.0
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

