{"id":"CVE-2022-2566","aliases":["CVE-2022-2566"],"related":[],"kind":"vulnerability","state":"published","title":"Heap-memory write in FFMPEG","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"Existe una escritura de memoria fuera de los límites del montón en FFMPEG desde la versión 5.1. El cálculo del tamaño en `build_open_gop_key_points()` recorre todas las entradas del bucle y añade `sc-&gt;ctts_data[i].count` a `sc-&gt;sample_offsets_count`. Esto puede conducir a un desbordamiento de enteros que resulta en una pequeña asignación con `av_calloc()`. Un atacante puede provocar la ejecución remota de código a través de un archivo mp4 malicioso. Recomendamos actualizar el commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05","source":"nvd"}],"published":"2022-09-23T11:10:14.367Z","modified":"2026-06-17T04:42:07.790Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-122","CWE-190"],"affected":[{"ranges":[{"type":"custom","introduced":"5.1","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"ab77b878f1205225c6de1370fb0e998dbcc8bc69","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"c953baa084607dd1d84c3bfcce3cf6a87c3e6e05","status":"affected"}],"vendor":"FFMPEG","product":"FFMPEG","source":"cvelist"},{"ranges":[{"status":"affected","version":"5.1"}],"vendor":"ffmpeg","product":"ffmpeg","cpe":"cpe:2.3:a:ffmpeg:ffmpeg:5.1:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/FFmpeg/FFmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Google","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-21T13:36:59.031Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-2566","url":"https://www.cve.org/CVERecord?id=CVE-2022-2566","licence":"CVE Terms of Use","modified":"2025-04-21T13:49:02.102Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-2566","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2566","licence":"Public domain","modified":"2026-06-17T04:42:07.790Z"}],"updatedAt":"2026-11-25T22:58:15.225Z","epss":{"score":0.0083,"percentile":0.58682,"date":"2026-12-01T12:00:22.000Z"}}