{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-2566","id":"CVE-2022-2566","title":"Heap-memory write in FFMPEG","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 up","descriptionLong":"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","published":"2022-09-23T11:10:14.367Z","updated":"2026-11-07T13:18:00.573969280Z","reserved":"2022-07-28T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"Google","metric":{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"Google"},"metrics":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"Google"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"google.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":["FFMPEG"],"affectedProducts":[{"vendor":"FFMPEG","product":"FFMPEG","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"5.1","versionType":"custom"},{"lessThan":"unspecified","status":"affected","version":"ab77b878f1205225c6de1370fb0e998dbcc8bc69","versionType":"custom"},{"lessThan":"c953baa084607dd1d84c3bfcce3cf6a87c3e6e05","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-122","CWE-190"],"aliases":[],"references":[{"url":"https://github.com/FFmpeg/FFmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2566.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2566","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.0083,"epssPercentile":0.58331,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-2566","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2566","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-2566","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-2566","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}