Buffer overflow in Ffmpeg

CVE-2022-2566

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

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.0 (Critical). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.008 (54.6th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 55th percentile — 54.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-2566: held from 0.007 to 0.008.

EPSS over last 30 days · oldest: 0.007 · newest: 0.008 · change: +0.001

Affected products

  • Ffmpeg — versions 5.1, ab77b878f1205225c6de1370fb0e998dbcc8bc69, unspecified

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-2566?
CVE-2022-2566 is a critical-severity vulnerability in Ffmpeg, classified under Heap-based Buffer Overflow. CVSS score: 9.0/10. Published 2022-09-23.
How severe is CVE-2022-2566?
Critical severity. CVSS v3 base score is 9.0 out of 10.
Is CVE-2022-2566 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.