FFmpeg versions 2.7 through 8.1.2 contain an out-of-bounds write vulnerability in the TDSC video decoder that allows remote attackers to cause heap… (CVE-2026-65703)
FFmpeg versions 2.7 through 8.1.2 contain an out-of-bounds write vulnerability in the TDSC video decoder. This flaw arises when processing crafted AVI files that change frame dimensions across TDSF frames, leading to heap corruption. The vulnerability is due to the tdsc_parse_tdsf() function not properly unreferencing existing reference frames before buffer allocation, causing subsequent functions to write beyond buffer boundaries. This can result in a process crash and potentially allow remote code execution.
AI Analysis
Technical Summary
The vulnerability in FFmpeg's TDSC video decoder affects versions 2.7 through 8.1.2. It is an out-of-bounds write (CWE-787) caused by improper handling of reference frames in the tdsc_parse_tdsf() function. When a crafted AVI file changes frame dimensions across TDSF frames, the existing reference frame is not unreferenced before av_frame_get_buffer() is called. This leads to tdsc_blit() and tdsc_yuv2rgb() writing attacker-controlled pixel data beyond the allocated buffer, causing heap corruption. The impact includes process crashes and potential remote code execution by a remote attacker supplying malicious media files.
Potential Impact
Remote attackers can exploit this vulnerability by supplying specially crafted AVI files to cause heap corruption. This may lead to application crashes and potentially remote code execution within the context of the affected process. The vulnerability affects the security and stability of systems using vulnerable FFmpeg versions for media processing.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted AVI files with the TDSC video decoder in affected FFmpeg versions. Monitor vendor channels for updates and apply patches promptly once released.
FFmpeg versions 2.7 through 8.1.2 contain an out-of-bounds write vulnerability in the TDSC video decoder that allows remote attackers to cause heap… (CVE-2026-65703)
Description
FFmpeg versions 2.7 through 8.1.2 contain an out-of-bounds write vulnerability in the TDSC video decoder. This flaw arises when processing crafted AVI files that change frame dimensions across TDSF frames, leading to heap corruption. The vulnerability is due to the tdsc_parse_tdsf() function not properly unreferencing existing reference frames before buffer allocation, causing subsequent functions to write beyond buffer boundaries. This can result in a process crash and potentially allow remote code execution.
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's TDSC video decoder affects versions 2.7 through 8.1.2. It is an out-of-bounds write (CWE-787) caused by improper handling of reference frames in the tdsc_parse_tdsf() function. When a crafted AVI file changes frame dimensions across TDSF frames, the existing reference frame is not unreferenced before av_frame_get_buffer() is called. This leads to tdsc_blit() and tdsc_yuv2rgb() writing attacker-controlled pixel data beyond the allocated buffer, causing heap corruption. The impact includes process crashes and potential remote code execution by a remote attacker supplying malicious media files.
Potential Impact
Remote attackers can exploit this vulnerability by supplying specially crafted AVI files to cause heap corruption. This may lead to application crashes and potentially remote code execution within the context of the affected process. The vulnerability affects the security and stability of systems using vulnerable FFmpeg versions for media processing.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted AVI files with the TDSC video decoder in affected FFmpeg versions. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-x3xw-4qcq-c6mr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-65703"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a629b0d9c2644c7f8d861dd
Added to database: 07/23/2026, 22:51:57 UTC
Last enriched: 07/23/2026, 22:52:49 UTC
Last updated: 07/24/2026, 03:47:40 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.