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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-65704— FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder

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是FFmpeg组织开源的一套可录制、转换以及流化音视频的完整解决方案。 FFmpeg 8.1.2及之前版本存在安全漏洞,该漏洞源于TY demuxer的demux_audio()函数在减少数据包大小时未进行边界检查,产生负大小值,传递给shorten_decode_frame()中的memcpy()后转换为接近SIZE_MAX,导致越界读取和写入,攻击者可通过提供特制的ffconcat文件并处理-safe 0标志造成堆损坏。

CVSS 7.8 · High EPSS 0.18% · P7

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 2

VendorProduct Version RangeStatus
FFmpeg FFmpeg ≤ 8.1.2 affected
de771bd52774a52d45b0e2c82e56995a1ef40df7 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-65704

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
FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder
Source: CVE Program / CVE List V5
Vulnerability Description
FFmpeg through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements packet size without bounds checking, producing a negative size value that is passed to memcpy() in shorten_decode_frame(), where conversion to size_t wraps the value to near SIZE_MAX and triggers reads beyond the source allocation and writes far beyond the Shorten decoder's bitstream buffer.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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是FFmpeg组织开源的一套可录制、转换以及流化音视频的完整解决方案。 FFmpeg 8.1.2及之前版本存在安全漏洞,该漏洞源于TY demuxer的demux_audio()函数在减少数据包大小时未进行边界检查,产生负大小值,传递给shorten_decode_frame()中的memcpy()后转换为接近SIZE_MAX,导致越界读取和写入,攻击者可通过提供特制的ffconcat文件并处理-safe 0标志造成堆损坏。
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 0 ~ 8.1.2 -

II. Public POCs for CVE-2026-65704

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-65704

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

Patches & Fixes for CVE-2026-65704 (2)

Vendor Advisories for CVE-2026-65704 (1)

Same Patch Batch · FFmpeg · 2026-07-23 · 4 CVEs total

CVE-2026-65703 7.8 HIGH FFmpeg 2.7 - 8.1.2 Out-of-Bounds Write in TDSC Video Decoder
CVE-2026-65706 7.8 HIGH FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing
CVE-2026-65705 7.8 HIGH FFmpeg 3.4 - 8.1.2 vf_floodfill Out-of-Bounds Write via filter_frame()

IV. Related Vulnerabilities

V. Comments for CVE-2026-65704

No comments yet


Leave a comment