CVE-2026-135714: FFmpeg before 9.1 Uninitialized Stack Memory Disclosure via RTMP AMF Strings
FFmpeg before 9.1 contains an information disclosure vulnerability in amfgetfieldvalue2() in libavformat/rtmppkt.c that NUL-terminates truncated AMF strings at the declared length instead of bytes read. A malicious RTMP server, or connecting client in listen mode, can send truncated onStatus or error strings to leak uninitialized stack memory through log messages.
Affected Software
Event History
Frequently Asked Questions
Which FFmpeg deployments are exposed to this issue?
FFmpeg versions before 9.1 are affected when they process RTMP messages containing AMF onStatus or _error strings. The issue can be triggered by a malicious RTMP server, or by a connecting client when FFmpeg is operating in listen mode.
What does an attacker need to do to trigger the disclosure?
The attacker must cause FFmpeg to receive a truncated AMF string whose declared length exceeds the bytes actually supplied. Exploitation requires user interaction, such as connecting to a malicious RTMP server or accepting a connection in RTMP listen mode.
What information is exposed and where would it appear?
The flaw can disclose uninitialized stack memory through FFmpeg log messages. The provided information does not indicate that the disclosed data is sent back to the RTMP peer.
How can I determine whether a system is affected?
Check whether the installed FFmpeg version is earlier than 9.1 and whether it processes RTMP input or runs in RTMP listen mode. Review FFmpeg logs for abnormal or unexpectedly long onStatus or _error message content received during RTMP sessions.