Libav: 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 through version 8.1.2 contains an out-of-bounds write vulnerability in the TY demuxer's demux_audio() function. This vulnerability is triggered when processing a crafted ffconcat file with the -safe 0 flag, causing heap corruption due to improper bounds checking and a negative packet size passed to memcpy(). The vulnerability has a CVSS score of 7.8, indicating a medium severity. A patch is available to address this issue.
CVSS v3.1
Score 7.8high
Affected software
pkg:deb/ubuntu/libav?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/ffmpeg?arch=source&distro=stonkingpkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/resoluteRun 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 (libav) versions up to 8.1.2 involves an out-of-bounds write in the TY demuxer's demux_audio() function. When a specially crafted ffconcat file is processed with the -safe 0 flag, improper bounds checking allows a negative packet size to be passed to memcpy(), resulting in heap corruption. This flaw can lead to potential denial of service or code execution impacts. The issue is tracked as CVE-2026-65704 and has a CVSS 3.1 score of 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H). Multiple Ubuntu package versions are affected. A patch is available to remediate the vulnerability.
Potential Impact
Successful exploitation of this vulnerability can cause heap corruption, which may lead to denial of service or potentially allow an attacker to execute arbitrary code with user-level privileges. The attack requires processing a crafted ffconcat file with the -safe 0 flag, which implies user interaction or specific command-line usage. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector.
Mitigation Recommendations
A patch is available for this vulnerability. Users and administrators should apply the official updates provided for FFmpeg/libav to versions later than 8.1.2 or the corresponding fixed package versions in their distributions. Until patched, 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"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a629b0f9c2644c7f8d863de
Added to database: 07/23/2026, 22:51:59 UTC
Last enriched: 10/18/2026, 03:31:03 UTC
Last updated: 10/21/2026, 13:20:23 UTC
Views: 130
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.