Skip to main content
EPSS 0.2%top 92%

Libav: FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_swaprect video filter that allows attackers to corrupt heap… (CVE-2026-65706)

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

Description

FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_swaprect video filter. This vulnerability occurs when processing crafted NV12 video frames with odd width dimensions, leading to heap memory corruption. The flaw can cause process crashes or potentially allow code execution. 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.3 >=3.0
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:18.04:LTSmore threats →ghsa
ffmpeg
pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/bionic
Affected versions
<7:3.4.11-0ubuntu0.1+esm15=7:3.3.4-2=7:3.3.4-2build3=7:3.4-2ubuntu2=7:3.4-4=7:3.4-4build1=7:3.4.1-1=7:3.4.1-1build1=7:3.4.2-1=7:3.4.2-1build1=7:3.4.2-2=7:3.4.4-0ubuntu0.18.04.1=7:3.4.6-0ubuntu0.18.04.1=7:3.4.8-0ubuntu0.2=7:3.4.11-0ubuntu0.1=7:3.4.11-0ubuntu0.1+esm1=7:3.4.11-0ubuntu0.1+esm2=7:3.4.11-0ubuntu0.1+esm3=7:3.4.11-0ubuntu0.1+esm4=7:3.4.11-0ubuntu0.1+esm5=7:3.4.11-0ubuntu0.1+esm6=7:3.4.11-0ubuntu0.1+esm7=7:3.4.11-0ubuntu0.1+esm8=7:3.4.11-0ubuntu0.1+esm9=7:3.4.11-0ubuntu0.1+esm10=7:3.4.11-0ubuntu0.1+esm11=7:3.4.11-0ubuntu0.1+esm12=7:3.4.11-0ubuntu0.1+esm13=7:3.4.11-0ubuntu0.1+esm14
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:27:49 UTC

Technical Analysis

An out-of-bounds write vulnerability exists in the vf_swaprect video filter of FFmpeg versions 3.0 through 8.1.2. The vulnerability is triggered by processing specially crafted NV12 video frames that have odd width dimensions, resulting in heap memory corruption. This memory corruption can lead to application crashes or potentially enable arbitrary code execution. The vulnerability is tracked as CVE-2026-65706 and has a CVSS v3.1 score of 7.8, indicating a high impact on confidentiality, integrity, and availability. A patch is available to fix this vulnerability.

Potential Impact

Successful exploitation of this vulnerability can cause heap memory corruption, which may lead to application crashes or potentially allow an attacker to execute arbitrary code with the privileges of the affected process. This impacts the confidentiality, integrity, and availability of systems using vulnerable FFmpeg versions.

Mitigation Recommendations

A patch is available for this vulnerability. Users and administrators should apply the official updates to FFmpeg versions 8.1.3 or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.

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-g9rh-4g64-7qxg
Osv Schema Version
1.4.0
Aliases
["CVE-2026-65706"]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a629b0e9c2644c7f8d8632e

Added to database: 07/23/2026, 22:51:58 UTC

Last enriched: 10/18/2026, 03:27:49 UTC

Last updated: 10/21/2026, 13:20:23 UTC

Views: 117

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