CVE-2026-65704
Received Received - Intake

Heap Corruption in FFmpeg via TY Demuxer

Vulnerability report for CVE-2026-65704, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-23

Last updated on: 2026-07-23

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-23
Last Modified
2026-07-23
Generated
2026-07-24
AI Q&A
2026-07-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ffmpeg ffmpeg to 8.1.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-191 The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-65704 is an out-of-bounds write vulnerability in FFmpeg versions 8.1.2 and earlier. It occurs in the TY demuxer and Shorten decoder components. Attackers exploit it by providing a specially crafted ffconcat file processed with the -safe 0 flag. The demux_audio() function in the TY demuxer decrements packet size without bounds checking, creating a negative value. This negative value is passed to memcpy() in shorten_decode_frame(), where it wraps to near SIZE_MAX during conversion to size_t. This causes the function to read beyond allocated memory and write far beyond the Shorten decoder's buffer, leading to heap corruption.

The vulnerability allows attackers to cause memory corruption, potentially enabling arbitrary code execution or denial-of-service conditions on affected systems.

Detection Guidance

To detect this vulnerability, inspect FFmpeg versions for 8.1.2 or earlier. Check for suspicious ffconcat file processing with the -safe 0 flag. Monitor for heap corruption errors or crashes in FFmpeg operations involving TY demuxer or Shorten decoder.

Impact Analysis

This vulnerability can impact you if you use FFmpeg 8.1.2 or earlier to process untrusted ffconcat files with the -safe 0 flag. An attacker could exploit this to corrupt memory on your system, potentially leading to crashes, arbitrary code execution, or unauthorized access. Systems processing media files from untrusted sources are particularly at risk.

Mitigation Strategies

Update FFmpeg to the latest patched version immediately. Avoid using the -safe 0 flag with untrusted ffconcat files. Restrict access to FFmpeg operations and monitor for anomalous memory usage or crashes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-65704. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart