Heap-based Buffer Overflow Affecting ffmpeg package, versions [4.3,4.3.8) [4.4,4.4.5) [5.0,5.1.6) [6.0,6.1.2) [7.0,7.0.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (12th percentile)

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-UNMANAGED-FFMPEG-7640979
  • published 6 Aug 2024
  • disclosed 6 Aug 2024
  • credit CookedMelon

How to fix?

Upgrade ffmpeg to version 4.3.8, 4.4.5, 5.1.6, 6.1.2, 7.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow through the pnm_decode_frame function. An attacker can corrupt memory and potentially execute arbitrary code by sending a crafted PNM file that triggers a heap-based buffer overflow.

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Passive
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None