Skip to main content

FFmpeg EUVDEUVD-2026-48373

| CVE-2026-65706 HIGH
Out-of-bounds Write (CWE-787)
2026-07-23 VulnCheck GHSA-g9rh-4g64-7qxg
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious 17-wide NV12 frame
  2. Delivery
    Deliver to FFmpeg swaprect pipeline
  3. Exploit
    Trigger 18-byte copy into 17-byte buffer
  4. Execution
    Overflow corrupts adjacent heap
  5. Impact
    Crash or hijack execution flow

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the vulnerable FFmpeg build actually invoke the swaprect video filter on attacker-influenced input, and that the input be an NV12 (semi-planar two-byte interleaved chroma) frame with an odd width such as 17 pixels - even-width frames and non-NV12 pixel formats do not trigger the mismatched buffer size. Per the CVSS vector (AV:L, UI:P), the attack is local-vector and requires passive user or pipeline interaction to process the malicious frame; it is not remotely reachable without someone feeding the crafted content into the filter. The strongest limiting factor is that swaprect is a non-default, explicitly-configured filter, so environments that never use it are not exposed regardless of FFmpeg version.

Impact

The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) scores 8.5 (High) and is internally consistent with the description: exploitation requires a local attack vector plus passive user interaction (a victim or pipeline processing a malicious frame), not remote unauthenticated access. The high impact metrics reflect heap corruption with potential code execution, but the description is explicit that a reliable, confirmed outcome is a process crash, with code execution characterized as 'potential' - heap-corruption-to-RCE is non-trivial and depends on allocator state and the host application. No EPSS score, KEV listing, or POC availability was provided, so there is no evidence of active exploitation; the realistic near-term risk is denial of service against video-processing workflows rather than mass exploitation. The tags label this RCE, but that is an upper-bound characterization, not a demonstrated capability.

Exploit ScenarioDerived

An attacker crafts a malicious video (or NV12 frame stream) with a 17-pixel odd width and delivers it to a service or user whose FFmpeg-based pipeline applies the swaprect filter. When the frame is processed, the 18-byte chroma copy overflows the 17-byte heap buffer, corrupting adjacent heap metadata and crashing the process; with careful heap grooming the overflow could be steered toward code execution. No public POC was provided, so this scenario reflects the described mechanism rather than a demonstrated exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Heap out-of-bounds write in FFmpeg's vf_swaprect video filter (versions 3.0 through 8.1.2) lets an attacker corrupt heap memory by getting the library to process a crafted NV12 video frame with odd width, causing an 18-byte copy into a 17-byte buffer. Successful exploitation causes at minimum a process crash and potentially arbitrary code execution in the context of the application embedding FFmpeg. Reported by VulnCheck with an upstream fix committed; there is no public exploit identified at time of analysis and it is not on CISA KEV.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the fix in FFmpeg commit a7e38b617b32f996beaa371bbf04b39907d7a527 (https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527), tracked in PR https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23779, and rebuild or update to a release that incorporates it once tagged. Until a patched build is deployed, remove the swaprect filter from any filtergraphs and reject or sanitize untrusted NV12 input; because the trigger is odd-width NV12 frames, forcing pixel-format conversion or even-dimension normalization (e.g. scale/pad to even width) before swaprect avoids the miscalculation, at the cost of an extra processing step and possible minor quality/alignment changes. If swaprect is not used in your pipeline, the practical exposure is limited to code paths that invoke it, so auditing filtergraph definitions and disabling user-controllable filter selection is an effective compensating control.

Affected VersionsENISA

FFmpeg patch: a7e38b617b32f996beaa371bbf04b39907d7a527
FFmpeg 3.0 ≤8.1.2

Affected Packages

euvd ffmpeg no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FFmpeg is one of the most widely embedded multimedia frameworks, used by media players, transcoding pipelines, browsers, and server-side video processors. The bug lives in the swaprect video filter (libavfilter/vf_swaprect.c), which swaps two rectangular regions of a frame by copying rows through a temporary buffer. The filter_frame() function sizes that temporary row buffer using plane 0's pixel step (one byte per sample), then reuses it across all planes. NV12 is a semi-planar YUV format where plane 0 is single-byte luma but plane 1 is interleaved chroma at two bytes per sample. For a 17x16 NV12 frame the code copies 18 bytes of interleaved chroma into the 17-byte allocation, a classic CWE-787 out-of-bounds write driven by mismatched per-plane pixel-step assumptions.

Know when Ffmpeg gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

Local processing of a crafted frame with passive user interaction (AV:L/UI:R), no privileges needed (PR:N), and heap corruption yielding potential code execution justifies high C/I/A with unchanged scope.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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 memory by supplying a crafted NV12 video frame with odd width dimensions. The filter_frame() function reuses a temporary row buffer sized for plane 0's single-byte pixel step across all planes, causing an 18-byte memcpy into a 17-byte heap allocation when processing the two-byte-per-sample interleaved chroma plane of a 17x16 NV12 frame, resulting in heap corruption and process crash with potential for code execution.

Executive ViewAI

Why It Matters

FFmpeg versions 3.0-8.1.2 contain a heap out-of-bounds write in the vf_swaprect video filter (CVE-2026-65706, CVSS 8.5) that affects any application processing user-supplied video content, including media servers, streaming platforms, and video conferencing systems. An attacker can trigger a process crash or potentially achieve code execution by crafting a malicious NV12 video frame; no public exploit identified at time of analysis.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in vast numbers of media and server applications
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38090 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_roberts in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows atta

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy