Skip to content
Fencer Vulns
high 7.8

CVE-2024-31582 json

FFmpeg version n6.1 was discovered to contain a heap buffer overflow vulnerability in the...

published 2024-04-17 2 y ago modified 2026-07-23 3 mo ago also EUVD-2024-29458 , JLSEC-2025-126

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 28%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia FFMPEG_jll 7.1.0+0
  • ffmpeg ffmpeg 5.1.7
  • ffmpeg Debian 12 7:5.1.7-0+deb12u1
  • ffmpeg Debian 14, Debian 13 7:7.0.1-3

debian advisories DEBIAN-CVE-2024-31582

  • ffmpeg Ubuntu Pro 24.04 LTS 7:6.1.1-3ubuntu5+esm1

ubuntu advisories UBUNTU-CVE-2024-31582

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ffmpeg-5 openSUSE Tumbleweed 5.1.4-5.1
  • ffmpeg-6 openSUSE Tumbleweed 6.1.1-4.1

opensuse advisories openSUSE-SU-2024:13888-1openSUSE-SU-2024:13895-1

  • ffmpeg Alpine 3.24, Alpine 3.23 7.1.1-r0

alpine advisories ALPINE-CVE-2024-31582

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-31582 updated

ffmpeg: multiple vulnerabilities

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

0.34% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
julia FFMPEG_jll
>=6.1.1+0, <7.1.0+0
7.1.0+0

Affected products

  • ffmpeg ffmpeg

Classification

Weakness
  • CWE-122 Heap-based Buffer Overflow

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Add more accurate affected version ranges.