Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-59729— Heap-buffer-overflow read in FFmpeg DHAV get_duration

Quick assessment

Affected
FFmpeg FFmpeg
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ffmpeg是meh.个人开发者的一个rust库。 FFmpeg 8.0之前版本存在安全漏洞,该漏洞源于解析DHAV文件头时整数下溢,可能导致读取分配缓冲区前的持续时间。

AI Predicted 9.1 Difficulty: Easy EPSS 0.16% · P5
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-59729

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Heap-buffer-overflow read in FFmpeg DHAV get_duration
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存写
Source: CVE Program / CVE List V5
Vulnerability Title
FFmpeg 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
ffmpeg是meh.个人开发者的一个rust库。 FFmpeg 8.0之前版本存在安全漏洞,该漏洞源于解析DHAV文件头时整数下溢,可能导致读取分配缓冲区前的持续时间。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
FFmpeg FFmpeg a218cafe4d3be005ab0c61130f90db4d21afb5db ~ 8.0 -

II. Public POCs for CVE-2025-59729

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-59729

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-59729 (1)

Same Patch Batch · FFmpeg · 2025-10-06 · 7 CVEs total

CVE-2025-59733 Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress
CVE-2025-59734 Heap-buffer-overflow write in FFmpeg SANM process_ftch
CVE-2025-59728 Heap-buffer-overflow write in FFmpeg MDASH resolve_content_path
CVE-2025-59731 Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress
CVE-2025-59730 Heap-buffer-overflow write in FFmpeg SANM decoding due to lack of bounds-checking in old_c
CVE-2025-59732 Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress

IV. Related Vulnerabilities

V. Comments for CVE-2025-59729

No comments yet


Leave a comment