Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-59729

MEDIUM 5.7EPSS 8%

Heap-buffer-overflow read in FFmpeg DHAV get_duration

Mitigation

  • Upgrade FFmpeg to 8.0 or later.

Who should check

  • Anyone running FFmpeg >= a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0

Vulnerability facts

Affected
FFmpeg >= a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0
Fixed in
FFmpeg 8.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.7 (v4.0, CNA)CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Adjacent network
  • Attack complexity: High
  • Attack requirements: Present
  • Privileges required: Low
  • User interaction: Passive
  • Confidentiality impact: Low
  • Integrity impact: High
  • Availability impact: None
  • Confidentiality impact on other systems: Low
  • Integrity impact on other systems: High
  • Availability impact on other systems: None
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-787
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
FFmpeg>= a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-59729. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-59729.md
Affected: FFmpeg >= a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0
Fixed in: FFmpeg 8.0

Steps:
1. Search this machine and project for FFmpeg: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-59729 being exploited?

There is no confirmed exploitation: CVE-2025-59729 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-59729?

Medium: CVSS 5.7 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-59729?

FFmpeg >= a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0.

Is there a fix for CVE-2025-59729?

Yes. Fixed in FFmpeg 8.0. Upgrade FFmpeg to 8.0 or later.

How do I check if I'm affected by CVE-2025-59729?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors