Skip to main content
EPSS 0.2%top 93%

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)

0
Medium
Published: 07/23/2026 (07/23/2026, 20:17:00 UTC)
Source: GCVE Database
Product: libav

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
ffmpeg/FFmpeg
pkg:github/ffmpeg/FFmpeg
Affected versions
<=8.1.2
Ubuntu:Pro:14.04:LTSmore threats →ghsa
libav
pkg:deb/ubuntu/libav?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=6:0.8.7-1ubuntu2=6:9.10-1ubuntu1=6:9.10-1ubuntu2=6:9.10-1ubuntu5=6:9.10-1ubuntu6=6:9.10-1ubuntu7=6:9.11-2ubuntu1=6:9.11-2ubuntu2=6:9.13-0ubuntu0.14.04.1=6:9.14-0ubuntu0.14.04.1=6:9.16-0ubuntu0.14.04.1=6:9.18-0ubuntu0.14.04.1=6:9.20-0ubuntu0.14.04.1=6:9.20-0ubuntu0.14.04.1+esm1
Ubuntu:Pro:20.04:LTSmore threats →ghsa
ffmpeg
pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/focal
Affected versions
<7:4.2.7-0ubuntu0.1+esm16=7:4.1.4-1build2=7:4.2.1-2=7:4.2.1-2ubuntu1=7:4.2.2-1build1=7:4.2.2-1ubuntu1=7:4.2.4-1ubuntu0.1=7:4.2.4-1ubuntu0.1+esm1=7:4.2.7-0ubuntu0.1=7:4.2.7-0ubuntu0.1+esm1=7:4.2.7-0ubuntu0.1+esm2=7:4.2.7-0ubuntu0.1+esm3=7:4.2.7-0ubuntu0.1+esm4=7:4.2.7-0ubuntu0.1+esm5=7:4.2.7-0ubuntu0.1+esm6=7:4.2.7-0ubuntu0.1+esm7=7:4.2.7-0ubuntu0.1+esm8=7:4.2.7-0ubuntu0.1+esm9=7:4.2.7-0ubuntu0.1+esm10=7:4.2.7-0ubuntu0.1+esm11=7:4.2.7-0ubuntu0.1+esm12=7:4.2.7-0ubuntu0.1+esm13=7:4.2.7-0ubuntu0.1+esm14=7:4.2.7-0ubuntu0.1+esm15
Ubuntu:Pro:22.04:LTSmore threats →ghsa
ffmpeg
pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/jammy
Affected versions
<7:4.4.2-0ubuntu0.22.04.1+esm15=7:4.4-6ubuntu5=7:4.4.1-2ubuntu1=7:4.4.1-3ubuntu1=7:4.4.1-3ubuntu2=7:4.4.1-3ubuntu3=7:4.4.1-3ubuntu5=7:4.4.2-0ubuntu0.22.04.1=7:4.4.2-0ubuntu0.22.04.1+esm1=7:4.4.2-0ubuntu0.22.04.1+esm2=7:4.4.2-0ubuntu0.22.04.1+esm3=7:4.4.2-0ubuntu0.22.04.1+esm4=7:4.4.2-0ubuntu0.22.04.1+esm5=7:4.4.2-0ubuntu0.22.04.1+esm6=7:4.4.2-0ubuntu0.22.04.1+esm7=7:4.4.2-0ubuntu0.22.04.1+esm8=7:4.4.2-0ubuntu0.22.04.1+esm9=7:4.4.2-0ubuntu0.22.04.1+esm10=7:4.4.2-0ubuntu0.22.04.1+esm11=7:4.4.2-0ubuntu0.22.04.1+esm12=7:4.4.2-0ubuntu0.22.04.1+esm13=7:4.4.2-0ubuntu0.22.04.1+esm14
Ubuntu:Pro:24.04:LTSmore threats →ghsa
ffmpeg
pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/noble
Affected versions
<7:6.1.1-3ubuntu5+esm13=7:6.0-6ubuntu1=7:6.0-9ubuntu1=7:6.1-2ubuntu1=7:6.1-3ubuntu1=7:6.1-4ubuntu1=7:6.1-5ubuntu1=7:6.1.1-1ubuntu1=7:6.1.1-3ubuntu1=7:6.1.1-3ubuntu5=7:6.1.1-3ubuntu5+esm1=7:6.1.1-3ubuntu5+esm2=7:6.1.1-3ubuntu5+esm3=7:6.1.1-3ubuntu5+esm4=7:6.1.1-3ubuntu5+esm5=7:6.1.1-3ubuntu5+esm6=7:6.1.1-3ubuntu5+esm7=7:6.1.1-3ubuntu5+esm8=7:6.1.1-3ubuntu5+esm10=7:6.1.1-3ubuntu5+esm11=7:6.1.1-3ubuntu5+esm12
Ubuntu:26.10more threats →ghsa
ffmpeg
pkg:deb/ubuntu/ffmpeg?arch=source&distro=stonking
Affected versions
=7:8.0.1-3ubuntu2=7:8.1-3ubuntu3=7:8.1.2-2ubuntu2
Ubuntu:Pro:26.04:LTSmore threats →ghsa
ffmpeg
pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/resolute
Affected versions
<7:8.0.1-3ubuntu2+esm4=7:7.1.1-1ubuntu4=7:7.1.2-1ubuntu3=7:7.1.2-1ubuntu4=7:7.1.3-1ubuntu1=7:8.0.1-2ubuntu1=7:8.0.1-3ubuntu1=7:8.0.1-3ubuntu2=7:8.0.1-3ubuntu2+esm1=7:8.0.1-3ubuntu2+esm3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 03:31:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses