# CVE-2022-2566: Heap-memory write in FFMPEG

- Severity: Critical 9.0 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Published: 2022-09-23T11:10:14.367Z
- Modified: 2026-06-17T04:42:07.790Z
- Weaknesses: CWE-122, CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Google

## Description

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

(As written by CVE List.)

## Affected

- FFMPEG FFMPEG: from 5.1 before unspecified; from ab77b878f1205225c6de1370fb0e998dbcc8bc69 before unspecified; from unspecified before c953baa084607dd1d84c3bfcce3cf6a87c3e6e05; 5.1

## Every score

- Google: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `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/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-2566](https://www.cve.org/CVERecord?id=CVE-2022-2566), CVE Terms of Use, modified 2025-04-21
- NVD: [CVE-2022-2566](https://nvd.nist.gov/vuln/detail/CVE-2022-2566), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-2566 · Whole record: https://cve.day/CVE-2022-2566.json · Rebuilt by cve.day 2026-11-25T22:58:15.225Z
