CVE-2024-31578: FFmpeg version n6.1.1 was discovered to contain a heap use-after-free via the av_hwframe_ctx_init function.
Noroxi assessment
Priority: Monitor (action score 30/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.1% (FIRST EPSS); higher than 68.1% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: ffmpeg (Alpine:v3.23) 7.1.1-r0; ffmpeg (Debian:11) 7:4.3.8-0+deb11u1; ffmpeg (Debian:13) 7:7.0.1-3.
Low priority for now. Upgrade to ffmpeg (Alpine:v3.23) 7.1.1-r0; ffmpeg (Debian:11) 7:4.3.8-0+deb11u1; ffmpeg (Debian:13) 7:7.0.1-3 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
- Published
- Apr 17, 2024
- Updated
- Jun 17, 2026
- EPSS
- 1.1% · 68th percentile
- CWE
- CWE-416
Report tools
Action score
30
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.1%
CISA SSVC decision
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| ffmpeg | ffmpeg | cpe:2.3:a:ffmpeg:ffmpeg |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora38
- fedoraproject fedora39
- fedoraproject fedora40
- ffmpeg ffmpegbefore 7.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.23 | ffmpeg | before 7.1.1-r0 | 7.1.1-r0 |
| Debian:11 | ffmpeg | before 7:4.3.8-0+deb11u1 | 7:4.3.8-0+deb11u1 |
| Debian:12 | ffmpeg | from 0 | — |
| Debian:13 | ffmpeg | before 7:7.0.1-3 | 7:7.0.1-3 |
| openSUSE:Leap 15.5 | ffmpeg | before 3.4.2-150200.11.41.1 | 3.4.2-150200.11.41.1 |
| openSUSE:Leap 15.5 | ffmpeg-4 | before 4.4-150400.3.24.1 | 4.4-150400.3.24.1 |
| openSUSE:Leap 15.6 | ffmpeg-4 | before 4.4.5-150600.13.16.1 | 4.4.5-150600.13.16.1 |
| openSUSE:Tumbleweed | ffmpeg-4 | before 4.4.4-7.1 | 4.4.4-7.1 |
| openSUSE:Tumbleweed | ffmpeg-5 | before 5.1.4-5.1 | 5.1.4-5.1 |
| openSUSE:Tumbleweed | ffmpeg-6 | before 6.1.1-4.1 | 6.1.1-4.1 |
| openSUSE:Tumbleweed | ffmpeg-7 | before 7.1.1-1.1 | 7.1.1-1.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 | ffmpeg | before 3.4.2-150200.11.41.1 | 3.4.2-150200.11.41.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP5 | ffmpeg-4 | before 4.4-150400.3.24.1 | 4.4-150400.3.24.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | ffmpeg-4 | before 4.4.5-150600.13.16.1 | 4.4.5-150600.13.16.1 |
Same product
ffmpeg: all recordsOther highest-scoring records for the same primary product.
- CVE-2009-4637FFmpeg 0.5 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via unknown vectors that…45Plan
- CVE-2016-10190Heap-based buffer overflow in libavformat/http.c in FFmpeg before 2.8.10, 3.0.x before 3.0.5, 3.1.x before 3.1.6, and 3.2.x before 3.2.2…42Plan
- CVE-2009-4634Multiple integer underflows in FFmpeg 0.5 allow remote attackers to cause a denial of service and possibly execute arbitrary code via a…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2024-22861Jan 27, 2024 · Integer overflow vulnerability in FFmpeg before n6.1, allows attackers to cause a denial of service (DoS) via the avcodec/osq module.30Monitor
- ← EarlierCVE-2023-49528Apr 12, 2024 · Buffer Overflow vulnerability in FFmpeg version n6.1-3-g466799d4f5, allows a local attacker to execute arbitrary code and cause a denial of…32Monitor
- Later →CVE-2024-31581Apr 17, 2024 · FFmpeg version n6.1 was discovered to contain an improper validation of array index vulnerability in libavcodec/cbs_h266_syntax_template.c.39Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:ffmpeg | 7.1.1-r0 · Alpine:v3.23 | Package registry (OSV) |
| debian:ffmpeg | 7:7.0.1-3 · Debian:13 | Package registry (OSV) |
| opensuse:ffmpeg | 3.4.2-150200.11.41.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:ffmpeg-4 | 4.4-150400.3.24.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:ffmpeg-5 | 5.1.4-5.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ffmpeg-6 | 6.1.1-4.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ffmpeg-7 | 7.1.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:ffmpeg | 3.4.2-150200.11.41.1 · SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 | Package registry (OSV) |
| suse:ffmpeg-4 | 4.4-150400.3.24.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP5 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2025-59734537 days apartHeap-buffer-overflow write in FFmpeg SANM process_ftch34Monitor
- CVE-2022-48434385 days apartlibavcodec/pthread_frame.c in FFmpeg before 5.1.2, as used in VLC and other products, leaves stale hwaccel state in worker threads, which…32Monitor
Not on record for this CVE: EPSS history · researcher credit · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- high · data or configuration can be modified
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- High
- Availability impact
- None
Weakness class (CWE)
CWE-416 · Use After FreeCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvd-secondary
Root cause
After a memory region is freed, another reference pointing to it is still used. By then, the same region may have been allocated for different data.
The bug in code
The whole CWE-416 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
free(dev->buf);
/* ... another thread is still running ... */
process(dev->buf);Fixed
lock(&dev->lock);
free(dev->buf);
dev->buf = NULL;
unlock(&dev->lock);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- github.com/ffmpeg/ffmpeg/commit/3bb00c0a420c3ce83c6fafee30270d69622ccad7
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPETICRXUOGRIM4U3BCRTIKE3IZWCSBT/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/
- lists.debian.org/debian-lts-announce/2024/10/msg00019.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.