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-112060 Overview
CVE-2026-112060 is a memory corruption vulnerability in librtmp, the Real-Time Messaging Protocol (RTMP) library shipped with RTMPDump through version 2.6. The AMF3_Decode function ignores decode failures when parsing Action Message Format 3 (AMF3) properties. A malicious RTMP server or man-in-the-middle attacker can send oversized AMF3 string lengths that trigger an out-of-bounds read and a heap out-of-bounds write. When the client is launched with the token option, DecodeTEA processes the corrupted data and writes beyond heap boundaries while leaking adjacent heap bytes. The flaw is classified under [CWE-787] (Out-of-bounds Write).
Critical Impact
Remote attackers controlling or intercepting RTMP traffic can corrupt heap memory and disclose heap contents in clients using librtmp with the token option.
Affected Products
- RTMPDump through version 2.6
- librtmp shared library distributed with RTMPDump
- Downstream applications that link against vulnerable librtmp builds
Discovery Timeline
- 2026-10-18 - CVE-2026-112060 published to the National Vulnerability Database
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-112060
Vulnerability Analysis
The vulnerability resides in the AMF3 decoding path of librtmp/amf.c. AMF3 is the serialization format used by RTMP to exchange structured objects between clients and servers. The AMF3_Decode function iterates over object properties and invokes helper routines to parse each key/value pair. When a helper such as the AMF3 string decoder fails, the return value is not propagated, and decoding continues as if the operation succeeded. This leaves the parser in an inconsistent state with attacker-influenced length fields still trusted downstream.
When the RTMPDump client is invoked with the token option, the parsed AMF3 string is passed to DecodeTEA, which performs an in-place Tiny Encryption Algorithm transform on the buffer. Because the length derived from the malformed AMF3 payload exceeds the allocation, the routine reads beyond the bounds of the source buffer and writes transformed bytes past the end of the heap chunk. The result is both an information disclosure of adjacent heap data and corruption of neighboring allocations.
Root Cause
The root cause is missing error handling in AMF3_Decode. The function discards failure codes from the AMF3 property decoder and continues to use attacker-controlled length values. This violates safe parsing practice for untrusted binary protocols and allows oversized string lengths to reach memory operations that assume validated inputs.
Attack Vector
Exploitation requires that a victim connect an librtmp client to an attacker-controlled RTMP endpoint, or that the attacker intercept and modify RTMP traffic in transit. The attack is network-reachable and requires limited user interaction to invoke a client with the token option. Successful exploitation enables heap corruption and leakage of heap memory bytes, which can be used to defeat allocator protections or to influence subsequent allocations in the client process.
See the VulnCheck Advisory for librtmp and the HackMD AMF3 Decode Analysis for a detailed walkthrough. The vulnerable source is published in the FFmpeg RTMPDump Source Code.
Detection Methods for CVE-2026-112060
Indicators of Compromise
- Outbound RTMP, RTMPE, RTMPT, or RTMPS connections from endpoints to untrusted or unexpected hosts on TCP 1935 or related ports.
- Crashes or heap corruption signatures in processes linked against librtmp (for example, media players and streaming utilities).
- Unusual AMF3 payloads containing oversized string length prefixes captured in network traces.
Detection Strategies
- Inspect RTMP traffic for AMF3 string length fields that exceed the enclosing message size, which indicates a malformed object stream.
- Monitor process telemetry for rtmpdump or applications bundling librtmp invoked with the --token or -T option against external endpoints.
- Enable AddressSanitizer or heap canaries in staging builds of librtmp consumers to surface the out-of-bounds write during fuzzing or regression testing.
Monitoring Recommendations
- Alert on new or rare outbound RTMP sessions from servers and workstations that normally do not stream media.
- Correlate client crashes with recent RTMP session activity in the Singularity Data Lake to identify opportunistic exploitation.
- Capture full packet traces for RTMP flows traversing untrusted networks to support retrospective analysis.
How to Mitigate CVE-2026-112060
Immediate Actions Required
- Inventory all systems and container images that ship librtmp or RTMPDump 2.6 and earlier.
- Avoid using the token option with RTMP endpoints that are not fully trusted, since this option gates the heap write condition.
- Restrict egress to known-good RTMP servers using firewall or proxy rules until patched binaries are available.
Patch Information
At the time of publication, no official upstream patch release is referenced in the advisory. Track the RTMPDump Project Homepage and the VulnCheck Advisory for librtmp for fix availability. Downstream distributions that package librtmp should be monitored for backported patches that validate AMF3 string length fields and propagate decode failures from AMF3_Decode.
Workarounds
- Disable or remove the RTMPDump client where it is not required for business operations.
- Terminate RTMP sessions through a trusted gateway that enforces TLS validation and sanitizes AMF payloads.
- Block outbound TCP 1935 and other RTMP ports at the perimeter for hosts that have no legitimate streaming requirement.
- Rebuild librtmp from source with compile-time hardening such as -D_FORTIFY_SOURCE=2, stack canaries, and heap allocator protections once a vendor patch is available.
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

