CVE-2025-59728 Affecting ffmpeg package, versions <7:4.2.7-0ubuntu0.1+esm12


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.17% (7th 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-UBUNTU2004-FFMPEG-13350655
  • published19 Jan 2026
  • disclosed6 Oct 2025

Introduced: 6 Oct 2025

CVE-2025-59728  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 ffmpeg to version 7:4.2.7-0ubuntu0.1+esm12 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:20.04 relevant fixed versions and status.

When calculating the content path in handling of MPEG-DASH manifests, there's an out-of-bounds NUL-byte write one byte past the end of the buffer.When we call xmlNodeGetContent below [0], it returns a buffer precisely allocated to match the string length, using strdup internally. If this buffer is not an empty string, it is assigned to root_url at [1].If the last (non-NUL) byte in this buffer is not '/' then we append '/' in-place at [2]. This will write two bytes into the buffer, starting at the last valid byte in the buffer, writing the NUL byte beyond the end of the allocated buffer. We recommend upgrading to version 8.0 or beyond.

CVSS Base Scores

version 3.1