CVE-2024-31578: ffmpeg · Use After Free
Affects ffmpegSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 1.1% chance of exploitation in 30 days – higher than 67% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation 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 communications and security advisories closely to apply patches immediately once they are released for this vulnerability.
- Until patches are available, consider isolating or sandboxing media processing components that use FFmpeg to limit potential damage from exploitation.
- Implement strict input validation and filtering on all media inputs to reduce the risk of processing maliciously crafted files.
- Employ runtime protections such as AddressSanitizer or similar memory error detection tools during development and testing to identify use-after-free issues.
- Use application-layer firewalls or media gateways to inspect and block suspicious media streams.
- Maintain up-to-date backups and incident response plans tailored to media processing infrastructure.
- Conduct security audits of third-party products incorporating FFmpeg to ensure they have addressed this vulnerability.
- Educate development and operations teams about the risks associated with heap use-after-free vulnerabilities and safe media handling practices.
Description
FFmpeg version n6.1.1 was discovered to contain a heap use-after-free via the av_hwframe_ctx_init function.
References
- github.com/ffmpeg/ffmpeg/commit/3bb00c0a420c3ce83c6fafee30270d69622ccad7 (opens in a new tab)
- gist.github.com/1047524396/45400cce5859d78dcd3a62010df8d179 (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.debian.org/debian-lts-announce/2024/10/msg00019.html (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)