Skip to main content

CVE-2026-84727: CWE-416 Use After Free in Apache Software Foundation Apache bRPC

0
Medium
VulnerabilityCVE-2026-84727cvecve-2026-84727cwe-416
Published: 10/21/2026 (10/21/2026, 12:11:48 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache bRPC

Description

Use-after-free in the RTMP protocol implementation in Apache bRPC (version < 1.18.0) on all platforms allows a malicious RTMP peer to crash the process or potentially corrupt memory via a crafted Abort message. Root Cause: When processing an RTMP Abort (protocol control message type 2), the RTMP policy implementation deleted the target RtmpChunkStream object. The send path (RtmpUnsentMessage::AppendAndDestroySelf -> RtmpChunkStream::SerializeMessage) runs concurrently on sender threads and dereferences the same RtmpChunkStream object without synchronization. If a remote peer sends an Abort message naming a chunk stream that is concurrently being used to serialize an outgoing message, the stream object is freed while still in use, resulting in a use-after-free. Additionally, deleting the chunk stream discarded its previous message header, so subsequent compressed (type-3) chunk headers on that stream could no longer be decoded. Affected Scenarios: Any application using the bRPC RTMP protocol implementation (rtmp policy), either as an RTMP server or as an RTMP client, where the remote endpoint is untrusted. The attacker needs to send an Abort message targeting a chunk stream id that is concurrently used for sending, which can crash the process or lead to memory corruption. How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3515

CVSS v3.1

Score 5.4medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Affected software

Apache Software Foundation

Apache bRPC

Affected versions
>=0 <1.18.0
GitHub Actionsmore threats →cve
apache/brpc
pkg:github/apache/brpc
Affected versions
>=0 <1.18.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/21/2026, 12:49:23 UTC

Technical Analysis

The vulnerability arises from improper synchronization when processing RTMP Abort messages (protocol control message type 2) in Apache bRPC's RTMP policy implementation. Specifically, the target RtmpChunkStream object is deleted upon receiving an Abort message, but concurrent sender threads may still dereference this object during message serialization. This race condition results in a use-after-free scenario. Additionally, deleting the chunk stream discards its previous message header, preventing decoding of subsequent compressed chunk headers on that stream. The flaw affects all platforms running Apache bRPC versions before 1.18.0 and can be triggered by an untrusted remote RTMP peer sending crafted Abort messages.

Potential Impact

An attacker controlling a remote RTMP peer can exploit this vulnerability to crash the affected process or cause memory corruption, potentially leading to denial of service or undefined behavior in applications using Apache bRPC's RTMP implementation as a client or server.

Mitigation Recommendations

A fix is available by upgrading Apache bRPC to version 1.18.0, which addresses this use-after-free issue. Alternatively, applying the patch provided in the linked pull request (https://github.com/apache/brpc/pull/3515) mitigates the vulnerability. Users should promptly update to the fixed version or apply the patch to prevent exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-09-02T04:35:19.806Z
State
PUBLISHED

Threat ID: 6ad8b1502cdf04f656ecd9c1

Added to database: 10/21/2026, 12:34:24 UTC

Last enriched: 10/21/2026, 12:49:23 UTC

Last updated: 10/21/2026, 13:46:12 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses