Heap-based Buffer Overflow Affecting ffmpeg package, versions >=0.0.0


0.0
high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.1% (41st percentile)
Expand this section
NVD
7.8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-COCOAPODS-FFMPEG-3031788
  • published 23 Sep 2022
  • disclosed 23 Sep 2022
  • credit Unknown

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

FFmpeg is a FFmpeg static library ruby binding that is compiled for iOS and CocoaPods.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow. 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().

References