Vulnerability · Published Oct 6, 2025 · Assigned by Google
CVE-2025-59728Heap-buffer-overflow write in FFmpeg MDASH resolve_content_path
High 8.7
In plain English
A high-severity out-of-bounds write in MPEG-DASH from FFmpeg. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | ffmpeg | 8.0-r0 | ALPINE-CVE-2025-59728 |
| Alpine:v3.24 | ffmpeg | 8.0-r0 | ALPINE-CVE-2025-59728 |
| Ubuntu:25.10 | ffmpeg | 7:7.1.1-1ubuntu4.2 | UBUNTU-CVE-2025-59728 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:4.0/AV:A/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N