CVE-2024-31582: ffmpeg · Heap-based Buffer Overflow
Affects ffmpegSource CVE Database V5
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 17 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubffmpeg/ffmpegpkg:github/ffmpeg/ffmpegOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Monitor FFmpeg project channels for official patches and apply them promptly once available.
- Until patches are released, restrict processing of untrusted or unauthenticated media inputs, especially from external or unknown sources.
- Implement sandboxing or containerization for applications using FFmpeg to limit the impact of potential exploitation.
- Employ input validation and filtering to detect and block malformed or suspicious media files before processing.
- Enhance user awareness and training to reduce the risk of social engineering attacks that could deliver crafted inputs.
- Monitor logs and system behavior for signs of crashes or anomalous activity related to media processing components.
- Review and update incident response plans to include scenarios involving media processing vulnerabilities.
- Coordinate with software vendors and third-party providers to ensure they are aware of the vulnerability and their mitigation plans.
- Consider network segmentation to isolate critical media processing infrastructure from general user environments.
- Use application whitelisting and privilege restrictions to minimize the ability of exploited processes to cause broader system compromise.
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.
References
- github.com/FFmpeg/FFmpeg/blob/n6.1.1/libavfilter/vf_codecview.c (opens in a new tab)
- github.com/ffmpeg/ffmpeg/commit/99debe5f823f45a482e1dc08de35879aa9c74bd2 (opens in a new tab)
- gist.github.com/1047524396/b47d5efe3bc420fb91dbb77c73c0fff3 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPETICRXUOGRIM4U3BCRTIKE3IZWCSBT/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/ (opens in a new tab)