Heap out-of-bounds write in FFmpeg MPEG-1/2 video decoder
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
FFmpeg before 6.1.7, from 7.0 before 7.1, from 7.1 before 7.1.6, from 8.0 before 8.0.4, from 8.1 before 8.1.4, and from 9.0 before 9.0.3 contain a heap out-of-bounds write in the MPEG-1/2 video decoder. With slice threading enabled, a queued slice-decoding job is not flushed before the first packet is decoded, so it writes inverse-DCT output past the end of the luma and chroma planes (CWE-787). A remote attacker can corrupt heap memory when a user processes a crafted MPEG-1/2 file in an AVI, Matroska, or MP4 container.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
A heap out-of-bounds write exists in the MPEG-1/2 video decoder (libavcodec/mpeg12dec.c) in FFmpeg before 6.1.7, 7.1.6, 8.0.4, 8.1.4, 9.0.3, and 9.1. When slice threading is enabled (the ffmpeg command-line default on multi-core hosts), a slice-decoding job queued while the decoder parses a codec's extradata is not flushed before the first packet is decoded, so it runs with mismatched field/frame picture geometry and writes inverse-DCT output -- with byte values controlled by the input -- past the end of the allocated luma and chroma planes. Processing a crafted MPEG-1/2 file (e.g. in an AVI, Matroska, or MP4 container) therefore corrupts heap memory.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FFmpeg | FFmpeg | before 6.1.7; 7.0 to before 7.1; 7.1 to before 7.1.6; 8.0 to before 8.0.4; 8.1 to before 8.1.4; 9.0 to before 9.0.3 | 6.1.7, 7.1.6, 8.0.4, 8.1.4, 9.0.3 | Patch available | CNA |
- FFmpeg VendorFFmpeg Affected before 6.1.7; 7.0 to before 7.1; 7.1 to before 7.1.6; 8.0 to before 8.0.4; 8.1 to before 8.1.4; 9.0 to before 9.0.3 Fixed in 6.1.7, 7.1.6, 8.0.4, 8.1.4, 9.0.3 Patch available CNA
Remediation
Upgrade FFmpeg to version 6.1.7, 7.1.6, 8.0.4, 8.1.4, or 9.0.3, depending on the release branch in use.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA FFmpeg (FFmpeg) Fixed in 6.1.7, 7.1.6, 8.0.4, 8.1.4, 9.0.3
Timeline
- 2026-12-04 Threatist record created from CVE-2026-145314
References
More FFmpeg vulnerabilities
- TI-2025-19015 FFmpeg git-master before commit d5873b was discovered to contain a memory leak in the component libavutil/iamf.c. CVSS 3.1HIGH 8.8
- TI-2024-21238 FFmpeg 7.0 contains a heap-buffer-overflow at libavfilter/vf_tiltandshift.c:189:5 in copy_column. CVSS 3.1HIGH 8.4
- TI-2023-06050 Ffmpeg: null pointer dereference in ffmpeg hls parsing CVSS 3.1HIGH 7.5
- TI-2023-28420 Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… CVSS 3.1HIGH 8.0
- TI-2023-27357 FFmpeg v.n6.1-3-g466799d4f5 allows a heap-based buffer overflow via the… CVSS 3.1HIGH 8.0
- TI-2023-27044 Buffer Overflow vulnerability in FFmpeg version n6.1-3-g466799d4f5, allows a local… CVSS 3.1HIGH 8.0
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences