CVE-2026-135725
Summary
FFmpeg before 9.1 contains a stack-based buffer overflow vulnerability in ff_rtmp_packet_write() 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 handle_chunk_size() echoes back, corrupting the publishing client's stack.
Impact & exploitability
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products we track (1)
Recommendation
Apply the vendor fix promptly. Open any affected product above for its exact safe version.
Official patch: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24916 ↗
Additional information
- NVD record
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24916Patch
- https://github.com/FFmpeg/FFmpeg/commit/041098a1a3bee481a1c8e905257ba04dad0c60a1Patch
- https://github.com/FFmpeg/FFmpeg
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/rtmppkt.c#L317
- https://www.vulncheck.com/advisories/ffmpeg-before-9.1-stack-based-buffer-overflow-via-ff-rtmp-packet-writeAdvisory