Home / Ffmpeg / Ffmpeg / CVE-2024-31585
CVE-2024-31585: is it exploited, and which versions of Ffmpeg are affected and fixed?
CVE-2024-31585 is an off-by-one Error vulnerability in Ffmpeg. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: ffmpeg from 5.1 before 7.0, fedora 38, fedora 39 and 1 more (NVD). Fixed in 7.0 (NVD). Severity: Medium (5.3, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:30 UTC.
What is CVE-2024-31585?
FFmpeg version n5.1 to n6.1 was discovered to contain an Off-by-one Error vulnerability in libavfilter/avf_showspectrum.c. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.
From the CVE record by mitre, last updated June 9, 2025, 15:28 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| ffmpeg | ffmpeg | from 5.1 before 7.0 | application |
| fedoraproject | fedora | 38 | operating system |
| fedoraproject | fedora | 39 | operating system |
| fedoraproject | fedora | 40 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 07:28 UTC.
How severe is CVE-2024-31585?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-31585 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 18, 2024)
- EPSS
- 0.33% probability of exploitation activity in the next 30 days, percentile 28.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-193 Off-by-one Error
Where are the vendor advisories and references?
- https://github.com/ffmpeg/ffmpeg/commit/ab0fdaedd1e7224f7e84ea22fcbfaa4ca75a6c06
- https://github.com/FFmpeg/FFmpeg/commit/81df787b53eb5c6433731f6eaaf7f2a94d8a8c80
- https://gist.github.com/1047524396/dc2c64ffe0c3934a6176bcd2c5cf5656
- FEDORA-2024-92780a83f9 vendor-advisory
- FEDORA-2024-55e7e839f1 vendor-advisory
- FEDORA-2024-3a548f46a8 vendor-advisory
- https://github.com/FFmpeg/FFmpeg/commit/3061bf668feffc7c1f0b244205167b3b86da8015
- https://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff/bf2d7b20ea1c7d15dcbaedd479f40295e5c83430..3061bf668feffc7c1f0b244205167b3b86da8015:/libavfilter/avf_showspectrum.c
- https://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff/aec67d3d7d2895bfea61aa1358d9d8e956f8615c..ab0fdaedd1e7224f7e84ea22fcbfaa4ca75a6c06:/libavfilter/avf_showspectrum.c
- FEDORA-2024-92780a83f9 vendor-advisory, x_transferred
- FEDORA-2024-55e7e839f1 vendor-advisory, x_transferred
- FEDORA-2024-3a548f46a8 vendor-advisory, x_transferred
When was it published, and where is the official record?
- Reserved
- April 5, 2024
- Published
- April 17, 2024, 00:00 UTC
- CVE record updated
- June 9, 2025, 15:28 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 07:28 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:30 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Ffmpeg?
- Nov 29, 2026CVE-2025-71475 FFmpeg: NULL pointer dereference (crash)
- Nov 29, 2026CVE-2025-71476 FFmpeg: NULL pointer dereference (crash)
- Nov 27, 2026CVE-2026-137911 FFmpeg: out-of-bounds read
- Nov 27, 2026CVE-2026-137910 FFmpeg: out-of-bounds read
- Nov 27, 2026CVE-2026-137909 FFmpeg: NULL pointer dereference (crash)
- Nov 27, 2026CVE-2026-137908 FFmpeg: memory leak
- Nov 27, 2026CVE-2026-137907 FFmpeg: out-of-bounds write (memory corruption)
- Nov 27, 2026CVE-2026-137906 FFmpeg: NULL pointer dereference (crash)
Questions about CVE-2024-31585
Is CVE-2024-31585 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.33% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Ffmpeg are affected by CVE-2024-31585?
ffmpeg from 5.1 before 7.0, fedora 38, fedora 39 and fedora 40, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2024-31585?
7.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-31585?
Medium (5.3, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2024-31585?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.