CVE-2026-135716: FFmpeg before 9.1 Out-of-Bounds Write via build_frame_code() in nutenc.c
FFmpeg before 9.1 contains an out-of-bounds write vulnerability in buildframecode() in libavformat/nutenc.c that allows attackers to corrupt the headerlen[] array by supplying inputs with many audio streams. Attackers can remux a crafted input with many audio streams to NUT, causing out-of-bounds reads past static header tables and crashing the application.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using FFmpeg before 9.1 are exposed when they remux attacker-controlled media into the NUT format. The crafted input must contain many audio streams.
What must an attacker do to trigger the vulnerability?
An attacker needs to provide a crafted input containing many audio streams and have it remuxed to NUT. Exploitation requires local access and user interaction, according to the supplied CVSS vector.
Are default FFmpeg deployments affected?
The issue is in the NUT muxer path, so it is relevant when the application remuxes inputs to NUT. The provided information does not establish whether NUT output is enabled or used by default.
What is the impact of successful exploitation?
The malformed input can corrupt the header_len[] array and cause out-of-bounds reads beyond static header tables, resulting in an application crash. The supplied severity vector also indicates potential low confidentiality and integrity impact.
What should teams do if they cannot immediately upgrade?
Avoid remuxing untrusted inputs to NUT, particularly inputs with many audio streams, until FFmpeg can be updated to 9.1 or later.