CVE-2026-135739: FFmpeg 7.1 before 9.1 contains an out-of-bounds read vulnerability in libavfilter/vf_scale.c that allows attackers to read past the filter input array by sendin
Ffmpeg 7.1 before 9.1 has an out-of-bounds read in the scale filter (libavfilter/vf_scale.c). A width or height command that uses ref variables, sent through sendcmd scripts or unauthenticated zmq or azmq filters, makes config_props() dereference an invalid pointer and crash the process. The fix is in Ffmpeg 9.1.
Published Nov 24, 2026 · Analysis Nov 25, 2026
What an attacker can do
The scale filter can take a new width or height at runtime through its process_command path. The expression may use ref variables, which come from a reference input. When the filter has no reference input, the code still reads past the end of the filter input array. config_props() then dereferences an invalid pointer, and the process crashes (CWE-125).
An attacker needs a way to send commands to a running filter graph. The advisory names two: sendcmd scripts, and the zmq or azmq filters, which accept commands over a network socket with no authentication. A service that transcodes video and exposes a zmq command port can therefore be taken down by anyone who reaches that port.
The CVSS vector rates availability impact as high and confidentiality impact as low, so a small information leak from the read is possible. The main outcome is a crashed ffmpeg process, which stops a live transcode or job. Command-line use on trusted files, without zmq or sendcmd, does not expose the path.
Who is affected
Ffmpeg 7.1 up to but not including 9.1 is affected, when a filter graph uses the scale filter and accepts runtime commands through sendcmd, zmq or azmq. Check what you run:
ffmpeg -version
ffmpeg -filters | grep -E 'zmq|sendcmd'The second line shows whether those filters are built in. Distribution packages may carry backports, so check your vendor's notes.
How to fix it
Upgrade to Ffmpeg 9.1. The fix, in commit dd1b4e4ba5c3, rejects a scale command that uses ref variables when the filter has no reference input, before reconfiguration, and restores the uses_ref flag if the command fails. The pull request page does not say whether the fix is backported to older release branches, so do not assume a 7.1 or 8.x point release has it.
Until then, do not expose a zmq or azmq command port to untrusted hosts, bind it to localhost, and avoid sendcmd scripts from untrusted sources.
How to tell if you were hit
Look for ffmpeg processes that crash with a segmentation fault while a graph that uses scale and zmq, azmq or sendcmd is running. Check system logs and core dumps for crashes in config_props or the scale filter. On the network side, look for connections to your zmq command port from hosts that are not your controller, and for commands that set width or height with ref variables.
Original advisory
From the National Vulnerability Database. This product uses the NVD API but is not endorsed or certified by the NVD.
FFmpeg 7.1 before 9.1 contains an out-of-bounds read vulnerability in libavfilter/vf_scale.c that allows attackers to read past the filter input array by sending width or height commands using ref variables. Attackers can send such commands via sendcmd scripts or unauthenticated zmq or azmq filters, causing config_props() to dereference an invalid pointer and crash the process.
Questions
- Does CVE-2026-135739 need authentication?
Not when the attack comes through the zmq or azmq filters, which the advisory calls unauthenticated. The attacker only needs network access to the command socket of a running filter graph that uses scale.
- Can I hit this bug by transcoding an untrusted video file?
The advisory describes the trigger as runtime commands to the scale filter through sendcmd or zmq, not a crafted media file. Plain command-line transcoding without those command channels is not described as affected.
- Is CVE-2026-135739 exploited in the wild?
The sources do not report exploitation and the entry has no CISA KEV listing. The record shows a low EPSS score of 0.0048.
References
Read for this analysis:
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
