CVE Tools

CVE-2025-59729

Heap-buffer-overflow read in FFmpeg DHAV get_duration

Published: Oct 6, 2025Updated: Oct 6, 2025 Sources: CVE List NVD BDUCWE-787

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.

No summary for this CVE yet.

CVSS Vector Breakdown

AV:AAC:HC:LI:HA:N
Exploitability
AV:AAccess Vector
Adjacent Network
AC:HAccess Complexity
High
Impact
C:LConfidentiality
L
I:HIntegrity
H
A:NAvailability
None

Weaknesses

Affected Products

FFmpeg team
oss-projectaka ffmpeg
Google Inc
commercial·USaka google
Android StudioOn-premDesktop App
Mobile Apps
FFmpeg
oss-project·USaka libavcodec

Exploitability

Official Patch Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

2 techniques
Initial Access
Privilege Escalation
View detailed technique mapping

References

Could not load news mentions.

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-59729 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows