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

EPSS: 0.007 (47.9th percentile) — read the EPSS interpretation.

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.

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.