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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 0.02% · P7
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
跨界内存写
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
FFmpegFFmpeg a218cafe4d3be005ab0c61130f90db4d21afb5db ~ 8.0 -

II. Public POCs for CVE-2025-59729

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-59729

登录查看更多情报信息。

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

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-59729

No comments yet


Leave a comment