CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022 · Ffmpeg

CVE-2022-2566
Ffmpeg vulnerability

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

High priority: this vulnerability is rated critical and can be attacked over the network without a login.

Affected products

Ffmpeg. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Ffmpeg runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Ffmpeg products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.