CVE-2022-2566 | Heap-memory write in FFMPEG

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-23 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-2566 is rated Moderate Risk (50.5/100): CVSS Critical severity, with low exploitation likelihood (EPSS 0.61%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-2566

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 1.53% 0.61% -0.92%
2 2025-11-21 0.72% 1.53% +0.81%
3 2025-11-18 0.72%

Full EPSS history (17 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-2566

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.0 3.1 CRITICAL
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.2 6.0 [email protected]
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]

Weakness enumeration for CVE-2022-2566

OS Trackers for CVE-2022-2566

vendor priority summary link
alpine high CVE-2022-2566: 1 source package rows (ffmpeg); 7 state rows across 2 repos (3.22-community, edge-community); fixed 0, open 7. https://security.alpinelinux.org/vuln/CVE-2022-2566
debian unimportant CVE-2022-2566 unimportant priority: Debian including 1 source packages (ffmpeg), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2022-2566
suse medium CVE-2022-2566 severity moderate: SUSE including 62 source package names (ffmpeg, ffmpeg-4, …), 357 product×package rows across 25 product lines (SUSE CaaS Platform 4.0, SUSE Enterprise Storage 6, … (25 product lines)): Known Not Affected 331, Fixed 26. https://www.suse.com/security/cve/CVE-2022-2566/
ubuntu medium CVE-2022-2566 medium priority: Ubuntu including 1 source packages (ffmpeg), 7 status rows across 7 suites (bionic, focal, jammy, kinetic, trusty, upstream, xenial): not-affected 5, ignored 1, released 1. https://ubuntu.com/security/CVE-2022-2566

Affected software / configurations for CVE-2022-2566

Vendor Product Version Raw CPE
ffmpeg ffmpeg 5.1 cpe:2.3:a:ffmpeg:ffmpeg:5.1:*:*:*:*:*:*:*

References for CVE-2022-2566

cvelogic Threat Intelligence