CVE-2026-125259: FFmpeg through 9.0.2 Heap Buffer Overflow via ProRes prores_ks Encoder
FFmpeg through 9.0.2 contains an integer overflow vulnerability in ffproreskostyaencodeinit() that miscalculates framesizeupperbound using 32-bit arithmetic for large frame dimensions. Attackers can supply a high-resolution video transcoded with the proresks encoder, causing encodeframe() to write slices past an undersized packet buffer and corrupt heap memory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/ffmpegto a version that resolves this vulnerability.Fixed in 8.1.4-r0
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments that transcode attacker-supplied, high-resolution video using FFmpeg's prores_ks encoder are exposed. The affected code is in the encoder initialization and frame encoding path.
What does an attacker need to trigger the issue?
An attacker needs to cause a high-resolution video to be transcoded with the prores_ks encoder. The large frame dimensions cause a 32-bit frame-size calculation to overflow, leading to an undersized packet buffer.
What is the likely security impact after triggering it?
The encoder can write slices beyond the allocated packet buffer and corrupt heap memory. The provided severity vector rates confidentiality, integrity, and availability impact as high.