Vulnerability · Published Apr 17, 2024 · Assigned by mitre
CVE-2024-31582
High 7.8
In plain English
A high-severity heap buffer overflow in the ffmpeg package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.3%top 71.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | ffmpeg | 7.1.1-r0 | ALPINE-CVE-2024-31582 |
| Alpine:v3.24 | ffmpeg | 7.1.1-r0 | ALPINE-CVE-2024-31582 |
| Debian:12 | ffmpeg | 7:5.1.7-0+deb12u1 | DEBIAN-CVE-2024-31582 |
| Debian:12 | ffmpeg | 7:5.1.7-0+deb12u1 | DSA-5985-1 |
| Debian:13 | ffmpeg | 7:7.0.1-3 | DEBIAN-CVE-2024-31582 |
| Debian:14 | ffmpeg | 7:7.0.1-3 | DEBIAN-CVE-2024-31582 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/FFmpeg/FFmpeg/blob/n6.1.1/libavfilter/vf_codecview.c#L220
- https://github.com/ffmpeg/ffmpeg/commit/99debe5f823f45a482e1dc08de35879aa9c74bd2
- https://gist.github.com/1047524396/b47d5efe3bc420fb91dbb77c73c0fff3
- FEDORA-2024-92780a83f9 vendor-advisory
- FEDORA-2024-55e7e839f1 vendor-advisory
- FEDORA-2024-3a548f46a8 vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/