Skip to main content
Vulnerability Database/CVE-2026-112061

CVE-2026-112061: librtmp Buffer Overflow Vulnerability

CVE-2026-112061 is a heap out-of-bounds read buffer overflow in librtmp RTMPDump that allows malicious servers to crash clients. This post covers the technical details, affected versions, security impact, and mitigation strategies.

Published:

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-112061 Overview

CVE-2026-112061 is a heap out-of-bounds read vulnerability in librtmp (RTMPDump) through version 2.6. The flaw resides in the AMFProp_Decode function, which reads an Action Message Format version 0 (AMF0) strict-array element count without first verifying that four bytes remain in the buffer. A malicious Real-Time Messaging Protocol (RTMP) server or a man-in-the-middle attacker can send a crafted AMF0 body ending with a strict-array type byte and fewer than four trailing bytes. The resulting out-of-bounds read crashes any client that links against the affected librtmp version.

Critical Impact

A remote RTMP server or network attacker can crash librtmp-based clients and tools (including streamers and media players) by sending a truncated AMF0 strict-array payload, enabling denial of service against the client process.

Affected Products

  • librtmp (RTMPDump) through version 2.6
  • Applications and media tools statically or dynamically linked against vulnerable librtmp builds
  • Downstream distributions packaging librtmp 2.6 or earlier without the AMF decoding fix

Discovery Timeline

  • 2026-10-18 - CVE-2026-112061 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in the NVD database

Technical Details for CVE-2026-112061

Vulnerability Analysis

The vulnerability is classified as an out-of-bounds read [CWE-125] in the AMF property decoder used by librtmp. When parsing AMF0 payloads received from an RTMP peer, AMFProp_Decode dispatches on the type byte to determine how to decode the following value. For the strict-array type, the decoder reads a 32-bit element count from the next four bytes to allocate and parse array members. The function reads this count before confirming that at least four bytes remain in the input buffer. When the caller supplies a buffer that terminates immediately after the strict-array type byte, the decoder reads memory beyond the allocated buffer boundary.

The practical outcome is a crash of the client process. Because RTMP sessions commonly run over unauthenticated TCP (port 1935) and are frequently proxied, an on-path attacker can inject the malformed message without controlling the origin server.

Root Cause

The root cause is a missing bounds check prior to a multi-byte read. The parser decodes the strict-array length field using the four bytes that follow the type marker but omits validation that the remaining input length is at least four. This is a classic input validation failure in a binary protocol decoder, where the trusted length field originates from attacker-controlled network data.

Attack Vector

Exploitation requires that a user initiate an RTMP connection to a hostile endpoint, or that an attacker intercepts and modifies RTMP traffic in transit. Because RTMP does not provide transport-layer authentication by default, man-in-the-middle injection on untrusted networks is feasible. The attacker crafts an AMF0 body that ends with the strict-array type byte (0x0A) followed by fewer than four bytes, delivers it in a response to a client request, and triggers the out-of-bounds read inside AMFProp_Decode. See the HackMD AMF3 Decode Analysis and the VulnCheck Advisory on librtmp for technical details of the malformed message layout.

No verified public exploit code is available at the time of writing. The vulnerable function can be reviewed in the FFmpeg RTMPDump Source Code.

Detection Methods for CVE-2026-112061

Indicators of Compromise

  • Unexpected crashes or SIGSEGV terminations in processes that link against librtmp, correlated with recent outbound RTMP connections.
  • RTMP response payloads containing an AMF0 strict-array type byte (0x0A) with fewer than four trailing bytes.
  • Repeated short-lived RTMP sessions to untrusted or newly observed streaming hosts.

Detection Strategies

  • Inspect RTMP flows (default TCP port 1935 and RTMPS 443/tunneled variants) for AMF0 messages that terminate immediately after a strict-array marker.
  • Hunt for process crash telemetry (Windows Error Reporting, Linux core dumps, macOS crash reports) involving binaries that import or statically embed librtmp symbols such as AMFProp_Decode and AMF_Decode.
  • Correlate client crashes with preceding RTMP handshake and chunk-stream activity to isolate hostile endpoints.

Monitoring Recommendations

  • Enable network protocol logging on egress proxies to capture RTMP destinations and session durations for post-incident review.
  • Alert on repeated media-client crashes across endpoints, which may indicate a widespread malicious server or MITM campaign.
  • Maintain software bills of materials (SBOMs) to inventory applications that bundle librtmp and track their patch status.

How to Mitigate CVE-2026-112061

Immediate Actions Required

  • Identify every application and system package that links against librtmp version 2.6 or earlier using SBOM data and package manager queries.
  • Restrict outbound RTMP connections to trusted media endpoints at the firewall or egress proxy until patches are deployed.
  • Advise users to avoid connecting librtmp-based tools to untrusted RTMP URLs received via chat, email, or public playlists.

Patch Information

No upstream RTMPDump release has been published since 2.6, and the project page at the RTMPDump Project Homepage does not list a vendor fix for this issue. Monitor downstream maintainers (FFmpeg, major Linux distributions) for backported patches to librtmp/amf.c that add a four-byte length check before decoding strict-array element counts. Rebuild dependent applications once a patched library is available.

Workarounds

  • Disable or remove librtmp support in applications where RTMP is not required, or switch to an alternative RTMP implementation that validates AMF0 buffer bounds.
  • Prefer RTMPS (RTMP over TLS) with certificate validation to reduce the risk of man-in-the-middle message injection on untrusted networks.
  • Run librtmp-based clients inside sandboxes or with reduced privileges so that a crash cannot destabilize other services on the host.
bash
# Configuration example: block outbound RTMP at the host firewall until patched
# Linux (iptables) - deny outbound TCP 1935
sudo iptables -A OUTPUT -p tcp --dport 1935 -j REJECT

# Identify processes linked against librtmp on Linux
lsof 2>/dev/null | grep -i librtmp
dpkg -S librtmp 2>/dev/null || rpm -qf $(ldconfig -p | awk '/librtmp/ {print $NF; exit}')

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.