CVE-2022-2566 - CVE House
Back to Database
Status published Critical CVE-2022-2566

Heap-memory write in FFMPEG

Vulnerability 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 upgrading past commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-2566

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

FFMPEG
Vulnerable Versions:
5.1, ab77b878f1205225c6de1370fb0e998dbcc8bc69, unspecified

Timeline

Official Publish: September 23rd, 2022
Last Modified: April 21st, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Weaknesses (CWE)