SecurityContext

CVE-2022-2566: FFMPEG - Integer Overflow

  • Cve: CVE-2022-2566
  • Name: FFMPEG - Integer Overflow
  • 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: Remote attackers can execute arbitrary code or cause crashes by exploiting the integer overflow vulnerability.
  • Remediation: Upgrade to a version past commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05.
  • Vulnerability type: integer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.0083
  • Epss percentile: 0.58493
  • Assignee: [email protected]
  • Published at: 2022-09-23T12:15:10Z
  • Age in days: 1523
  • Modified at: 2026-06-17T04:42:07Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-2566
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-122Heap-based Buffer Overflow
CWE-190Integer Overflow or Wraparound

References

UrlSourceTags
https://github.com/FFmpeg/FFmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05nvdPatch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
ffmpeg:ffmpeg= 5.1nonvd/v1/products/ffmpeg/ffmpeg

Projects

RepositoryLink kindsIndexedUrl
FFmpeg/FFmpegcommit, fixyes/v1/repositories/FFmpeg/FFmpeg

Index

  • Repositories: 432
  • Repositories high signal: 235
  • Checked, none or zero: packages

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts