FFmpeg through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat… (CVE-2026-65704)
FFmpeg versions through 8.1.2 contain an out-of-bounds write vulnerability in the TY demuxer's demux_audio() function. This flaw occurs when processing a crafted ffconcat file with the -safe 0 flag, leading to heap corruption due to improper bounds checking and a negative packet size value that wraps to a large size_t value. This causes reads and writes beyond allocated buffers in the Shorten decoder's bitstream buffer.
AI Analysis
Technical Summary
The vulnerability in FFmpeg up to version 8.1.2 involves an out-of-bounds write triggered by a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements the packet size without verifying bounds, resulting in a negative size that, when converted to size_t, wraps to a very large value. This leads to memcpy() reading beyond the source allocation and writing far beyond the Shorten decoder's bitstream buffer, causing heap corruption. This vulnerability is tracked as CVE-2026-65704 and is classified under CWE-191 (Integer Underflow).
Potential Impact
Successful exploitation can cause heap corruption, which may lead to application crashes or potentially arbitrary code execution depending on the context. The vulnerability requires processing a specially crafted ffconcat file with the -safe 0 flag, which may limit exposure. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, avoid processing untrusted ffconcat files with the -safe 0 flag to mitigate risk.
FFmpeg through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat… (CVE-2026-65704)
Description
FFmpeg versions through 8.1.2 contain an out-of-bounds write vulnerability in the TY demuxer's demux_audio() function. This flaw occurs when processing a crafted ffconcat file with the -safe 0 flag, leading to heap corruption due to improper bounds checking and a negative packet size value that wraps to a large size_t value. This causes reads and writes beyond allocated buffers in the Shorten decoder's bitstream buffer.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in FFmpeg up to version 8.1.2 involves an out-of-bounds write triggered by a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements the packet size without verifying bounds, resulting in a negative size that, when converted to size_t, wraps to a very large value. This leads to memcpy() reading beyond the source allocation and writing far beyond the Shorten decoder's bitstream buffer, causing heap corruption. This vulnerability is tracked as CVE-2026-65704 and is classified under CWE-191 (Integer Underflow).
Potential Impact
Successful exploitation can cause heap corruption, which may lead to application crashes or potentially arbitrary code execution depending on the context. The vulnerability requires processing a specially crafted ffconcat file with the -safe 0 flag, which may limit exposure. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, avoid processing untrusted ffconcat files with the -safe 0 flag to mitigate risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-98cx-cw6c-5pj4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-65704"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a629b0f9c2644c7f8d863de
Added to database: 07/23/2026, 22:51:59 UTC
Last enriched: 07/23/2026, 22:53:57 UTC
Last updated: 07/24/2026, 00:58:05 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.