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)
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
Affected software
pkg:deb/ubuntu/libav?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps/bionicpkg: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
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.
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 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.