Skip to content
OpenAdvisories
High · 7.8 CVE-2024-31582 EUVD-2024-29458GHSA-8g7x-vrfh-74fj

FFmpeg version n6.1 was discovered to contain a heap buffer overflow vulnerability in the draw_block_rectangle function of libavfilter/vf_c…

Published Apr 17, 2024 · Updated Nov 4, 2025 · Assigned by mitre

Description

FFmpeg version n6.1 was discovered to contain a heap buffer overflow vulnerability in the draw_block_rectangle function of libavfilter/vf_codecview.c. This vulnerability allows attackers to cause undefined behavior or a Denial of Service (DoS) via crafted input.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ffmpeg 7:7.0.1-3 —
Debian 13 ffmpeg 7:7.0.1-3 —
Debian 12 ffmpeg 7:5.1.7-0+deb12u1 DSA-5985-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS ffmpeg 7:6.1.1-3ubuntu5+esm1 USN-6803-1
Ubuntu Pro 22.04 LTS ffmpeg 7:4.4.2-0ubuntu0.22.04.1+esm4 USN-6803-1
Ubuntu Pro 20.04 LTS ffmpeg 7:4.2.7-0ubuntu0.1+esm5 USN-6803-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS ffmpeg 7:3.4.11-0ubuntu0.1+esm5 USN-6803-1
Ubuntu Pro 16.04 LTS ffmpeg 7:2.8.17-0ubuntu0.1+esm7 USN-6803-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ffmpeg-5 5.1.4-5.1 openSUSE-SU-2024:13888-1
openSUSE Tumbleweed ffmpeg-6 6.1.1-4.1 openSUSE-SU-2024:13895-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ffmpeg 7.1.1-r0 —
Alpine v3.23 ffmpeg 7.1.1-r0 —

Advisories 5

References