{"id":"CVE-2022-2566","published":"2022-09-23T11:10:14Z","modified":"2025-04-21T13:49:02Z","title":"Heap-memory write in FFMPEG","vendor":"FFMPEG","product":"FFMPEG","tier":"tail","description":{"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","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0083,"percentile":0.58459,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/FFmpeg/FFmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05","tags":["x_refsource_MISC"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":11.69},{"name":"CVSS severity","points":6.3}]},"vendorSlug":"ffmpeg","affectedVersions":[{"vendor":"FFMPEG","product":"FFMPEG","versions":[">= 5.1, < unspecified",">= ab77b878f1205225c6de1370fb0e998dbcc8bc69, < unspecified",">= unspecified, < c953baa084607dd1d84c3bfcce3cf6a87c3e6e05"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-21T13:36:59.031026Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-34819","exploited":false,"provenance":"source"}}