CVE-2022-2566

published 23 Sep 2022 · updated 21 Apr 2025

Heap-memory write in FFMPEG

9.0CriticalCVSS 9.0EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in c953baa084607dd1d84c3bfcce3cf6a87c3e6e05 and unspecified.

A heap out-of-bounds memory write exists in FFMPEG since version 5.1. The size calculation in `build_open_gop_key_points()` goes through all entries in the loop and adds `sc->ctts_data[i].count` to `sc->sample_offsets_count`. This can lead to an integer overflow resulting in a small allocation with `av_calloc()`. An attacker can cause remote code execution via a malicious mp4 file. We recommend upgrading past commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ffmpeg<c953baa084607dd1d84c3bfcce3cf6a87c3e6e05, >=5.1 <unspecified, >=ab77b878f1205225c6de1370fb0e998dbcc8bc69 <unspecifiedc953baa084607dd1d84c3bfcce3cf6a87c3e6e05, unspecified

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-2566 severity on Zeptric[![CVE-2022-2566](https://zeptric.io/badge/cve/CVE-2022-2566.svg)](https://zeptric.io/cve/CVE-2022-2566)