# CVE-2024-31582: ffmpeg: FFmpeg version n6.1 was discovered to contain a heap buffer overflow vulnerability in the draw_block_rectangle functi...

CVE-2024-31582 is fixed in 15 products on 1 platform, first by DEBIAN-CVE-2024-31582, released April 17, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-31582
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.0034
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 17, 2024

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ffmpeg Debian 12.15 (bookworm) | 7:5.1.7-0+deb12u1 | [DEBIAN-CVE-2024-31582](https://patchblox.com/security/data/fix/linux/debian-cve-2024-31582.md) | Apr 17, 2024 |
| Linux | ffmpeg Debian 13.5 (trixie) | 7:7.0.1-3 | [DEBIAN-CVE-2024-31582](https://patchblox.com/security/data/fix/linux/debian-cve-2024-31582.md) | Apr 17, 2024 |
| Linux | ffmpeg Debian 14 | 7:7.0.1-3 | [DEBIAN-CVE-2024-31582](https://patchblox.com/security/data/fix/linux/debian-cve-2024-31582.md) | Apr 17, 2024 |
| Linux | ffmpeg Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [ffmpeg 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-ffmpeg-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavcodec-extra Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavcodec-extra 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavcodec-extra-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavcodec-extra60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavcodec-extra60 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavcodec-extra60-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavcodec60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavcodec60 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavcodec60-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavdevice60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavdevice60 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavdevice60-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavfilter-extra Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavfilter-extra 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavfilter-extra-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavfilter-extra9 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavfilter-extra9 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavfilter-extra9-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavfilter9 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavfilter9 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavfilter9-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavformat-extra Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavformat-extra 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavformat-extra-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavformat-extra60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavformat-extra60 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavformat-extra60-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavformat60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavformat60 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavformat60-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libavutil58 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libavutil58 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavutil58-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libpostproc57 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libpostproc57 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libpostproc57-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libswresample4 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libswresample4 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libswresample4-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |
| Linux | libswscale7 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm1 | [libswscale7 7:6.1.1-3ubuntu5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libswscale7-7-6.1.1-3ubuntu5-esm1.md) | Apr 19, 2024 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
