Heap-based Buffer Overflow Affecting ffmpeg package, versions [,5.1.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.12% (48th 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 IDSNYK-UNMANAGED-FFMPEG-7654161
  • published9 Aug 2024
  • disclosed8 Aug 2024
  • creditCookedMelon

Introduced: 8 Aug 2024

CVE-2024-7272  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade ffmpeg to version 5.1.6 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow through the fill_audiodata function in libswresample/swresample.c:535. An attacker can corrupt memory and potentially execute arbitrary code by sending specially crafted input to trigger a heap-based buffer overflow.

PoC

./configure --enable-lto --enable-gpl --enable-libx265 --disable-shared --disable-inline-asm --enable-debug=1
./ffmpeg_g -i ./poc ./test.mp4

References

CVSS Scores

version 4.0
version 3.1