JLSEC-2026-2201: FFmpeg before 9.1 contains a stack-based buffer overflow vulnerability in ff_rtmp_packet_write()...
FFmpeg before 9.1 contains a stack-based buffer overflow vulnerability in ffrtmppacketwrite() in libavformat/rtmppkt.c that allows malicious RTMP servers to overflow a 16-byte header buffer. Attackers can send a Set Chunk Size packet on a high channel id with an extended timestamp, which handlechunksize() echoes back, corrupting the publishing client's stack.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/FFMPEG_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0 - Upgrade
Upgrade
julia/FFMPEG_nogpl_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to this issue?
Publishing clients that connect to an attacker-controlled or malicious RTMP server are exposed. The affected software entries are julia/ffmpeg_jll and julia/ffmpeg_nogpl_jll when they include FFmpeg versions before 9.1.
What must an attacker do to trigger the overflow?
The attacker needs to operate or control an RTMP server that the client connects to for publishing. The server sends a Set Chunk Size packet using a high channel ID and an extended timestamp, causing the client to echo the packet and overflow its stack-based header buffer.
What is the immediate remediation?
Upgrade to FFmpeg 9.1 or later. For the listed Julia packages, use a package release that incorporates FFmpeg 9.1 or later.
What can be done if an upgrade is not immediately available?
Avoid publishing to untrusted RTMP servers and restrict publishing connections to known, trusted RTMP endpoints. This reduces the opportunity for an attacker-controlled server to supply the malicious packet.