8.7high
Heap-buffer-overflow write in FFmpeg MDASH resolve_content_path
- Severity
- 8.7high CVSS:4.0 by Google
- Exploit likelihood
- 0.19% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
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
| Product or package | Versions | Reported by |
|---|---|---|
| FFmpeg MPEG-DASH | from 7.1.1 before 8.0, from a218cafe4d3be005ab0c61130f90db4d21afb5db before 8.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Al calcular la ruta de contenido al manejar manifiestos MPEG-DASH, se produce una escritura de byte NUL fuera de límites un byte más allá del final del búfer. Cuando se llama a xmlNodeGetContent a continuación [0], devuelve un búfer asignado con precisión para coincidir con la longitud de la cadena, utilizando strdup internamente. Si este búfer no es una cadena vacía, se asigna a root_url en [1]. Si el último byte (no NUL) en este búfer no es /, entonces se añade / en el mismo lugar en [2]. Esto escribirá dos bytes en el búfer, comenzando en el último byte válido en el búfer, escribiendo el byte NUL más allá del final del búfer asignado. Recomendamos actualizar a la versión 8.0 o posterior.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59728 changed 2026-02-26 | CVE Terms of Use |
| NVD | CVE-2025-59728 changed 2026-10-09 | Public domain |