Use After Free Affecting ffmpeg package, versions <7:2.8.17-0ubuntu0.1+esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.73% (76th 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-UBUNTU1604-FFMPEG-1622347
  • published12 Jul 2025
  • disclosed10 Aug 2021

Introduced: 10 Aug 2021

CVE-2020-21688  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Ubuntu:16.04 ffmpeg to version 7:2.8.17-0ubuntu0.1+esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ffmpeg package and not the ffmpeg package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 relevant fixed versions and status.

A heap-use-after-free in the av_freep function in libavutil/mem.c of FFmpeg 4.2 allows attackers to execute arbitrary code.

CVSS Base Scores

version 3.1