CVE catalog

CVE-2025-59729

ffmpeg: CVE-2025-59729

[CVE catalog]

Severity
Medium · CVSS 5.7CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.16% · Oct 25, 2026

When parsing the header for a DHAV file, there's an integer underflow in offset calculation that leads to reading the duration from before the start of the allocated buffer. If we load a DHAV file that is larger than MAX_DURATION_BUFFER_SIZE bytes (0x100000) for example 0x101000 bytes, then at [0] we have size = 0x101000. At [1] we have end_buffer_size = 0x100000, and at [2] we have end_buffer_pos = 0x1000. The loop then scans backwards through the buffer looking for the dhav tag; when it is found, we'll calculate end_pos based on a 32-bit offset read from the buffer. There is subsequently a check [3] that end_pos is within the section of the file that has been copied into end_buffer, but it only correctly handles the cases where end_pos is before the start of the file or after the section copied into end_buffer, and not the case where end_pos is within the the file, but before the section copied into end_buffer. If we provide such an offset, (end_pos - end_buffer_pos) can underflow, resulting in the subsequent access at [4] occurring before the beginning of the allocation. We recommend upgrading to version 8.0 or beyond.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianffmpegsid7:9.0.2-4not affected
Debianffmpegforky7:9.0.2-4not affected
Debianffmpegtrixie7:7.1.5-0+deb13u1not affected
Debianffmpegtrixie-security7:7.1.5-0+deb13u1not affected
Debianffmpegbookworm7:5.1.9-0+deb12u1not affected
Debianffmpegbookworm-security7:5.1.9-0+deb12u1not affected
Ubuntulibavpro6:0.8.7-1ubuntu2vulnerable
Ubuntulibavpro6:9.10-1ubuntu1vulnerable
Ubuntulibavpro6:9.10-1ubuntu2vulnerable
Ubuntulibavpro6:9.10-1ubuntu5vulnerable
Ubuntulibavpro6:9.10-1ubuntu6vulnerable
Ubuntulibavpro6:9.10-1ubuntu7vulnerable
Ubuntulibavpro6:9.11-2ubuntu1vulnerable
Ubuntulibavpro6:9.11-2ubuntu2vulnerable
Ubuntulibavpro6:9.13-0ubuntu0.14.04.1vulnerable
Ubuntulibavpro6:9.14-0ubuntu0.14.04.1vulnerable
Ubuntulibavpro6:9.16-0ubuntu0.14.04.1vulnerable
Ubuntulibavpro6:9.18-0ubuntu0.14.04.1vulnerable
Ubuntulibavpro6:9.20-0ubuntu0.14.04.1vulnerable
Ubuntulibavpro6:9.20-0ubuntu0.14.04.1+esm1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianffmpegsourcesidNot affectedunimportantNot reportedNot reported
DebianffmpegsourceforkyNot affectedunimportantNot reportedNot reported
DebianffmpegsourcetrixieNot affectedunimportantNot reportedNot reported
DebianffmpegsourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [ffmpeg]Not affected
    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [ffmpeg-doc]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · all · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · all · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · all · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · all · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavcodec59]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavcodec-dev]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavcodec-extra]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavcodec-extra59]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavdevice59]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavdevice-dev]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavfilter8]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavfilter-dev]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavfilter-extra]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavfilter-extra8]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavformat59]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavformat-dev]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavformat-extra]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavformat-extra59]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavutil57]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libavutil-dev]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libpostproc56]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

  • [libpostproc-dev]Not affected

    Source package: [ffmpeg]

    Details (4)
    • 7:5.1.9-0+deb12u1 · amd64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · amd64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

    • 7:5.1.9-0+deb12u1 · arm64 · bookworm-security

      Not affected

      dsa · ffmpeg · debian · bookworm

Next results

Observed:

References