Skip to main content

FFmpeg EUVDEUVD-2026-62579

| CVE-2026-75142 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-08-19 VulnCheck GHSA-5vj8-jgqj-77h6
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 media container with excess streams
  2. Delivery
    Submit file to FFmpeg MPEG-PS muxing pipeline
  3. Exploit
    mpegenc.c writes past fixed stack buffer boundary
  4. Execution
    Overwrite return address or stack locals
  5. Persist
    Redirect execution to attacker-controlled payload
  6. Impact
    Arbitrary code execution in FFmpeg process context

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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 FFmpeg be invoked with an MPEG-PS output format (e.g., -f vob, -f mpegps, or equivalent) and that the input media contains more streams than the fixed-size stack buffer in libavformat/mpegenc.c can accommodate. The CVSS 4.0 vector specifies AV:L, meaning the crafted input must be processed locally by the vulnerable FFmpeg binary - remote network-only access is insufficient without a file ingestion mechanism. UI:P (passive user interaction) means a human or automated pipeline must initiate the FFmpeg muxing operation on the crafted file. PR:N indicates no prior authentication or privileges are required to supply the crafted file to the process. Exploitation is limited to scenarios where: (1) MPEG-PS muxing is used as an output format, (2) untrusted or attacker-influenced media reaches the FFmpeg process, and (3) the FFmpeg binary predates commit 9d786e4. Systems that only decode or transcode to non-MPEG-PS formats are not affected by this specific code path.

Impact

The CVSS 4.0 score of 8.5 reflects a high-impact vulnerability tempered by a local attack vector (AV:L) and passive user interaction requirement (UI:P), meaning exploitation is not opportunistic over a network but requires the target system to process attacker-supplied media through the MPEG-PS muxer. The high C/H, I/H, A/H scores indicate that successful exploitation yields full control of the FFmpeg process. No EPSS score was provided in the available data, and this CVE does not appear in the CISA KEV catalog, so exploitation status is unconfirmed. No separate POC beyond the public patch commit and PR has been identified, though the patch code itself exposes the vulnerable pattern. In practice, even a mid-sized municipal IT team in zabrze operating a media transcoding or broadcast ingest pipeline should treat this as urgent given that stack overflows in widely-used media libraries have historically been weaponized within weeks of public disclosure. The absence of PR:N network reachability substantially limits the attack surface compared to a typical web vulnerability at this score, but automated batch-processing pipelines that ingest untrusted media files without prior sanitization represent a realistic attack surface where the UI:P condition is trivially satisfied.

Exploit ScenarioDerived

An attacker crafts a media container (such as a Matroska or MP4 file) carrying an abnormally large number of elementary streams and submits it to a transcoding service or broadcast ingest pipeline that outputs MPEG-PS format using FFmpeg. When FFmpeg processes the file for muxing, the stream count exceeds the fixed stack buffer in mpegenc.c, overwriting the return address or adjacent locals, allowing the attacker to redirect execution - potentially to shellcode embedded in the crafted input or to a ROP chain. No public exploit code has been identified at time of analysis, but the public patch commit exposes the exact vulnerable code pattern.

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 – Aug 19, 2026

Stack buffer overflow in FFmpeg's MPEG-PS muxer (libavformat/mpegenc.c) enables arbitrary code execution when processing crafted media input containing more streams than the muxer's fixed-size stack buffer can accommodate. Affected is all FFmpeg before commit 9d786e4; exploitation requires the victim to mux attacker-controlled input using the MPEG-PS output format, making this a file-processing attack rather than a remote network vulnerability. No public exploit code has been identified at time of analysis, but the patch commit and PR #24087 are publicly accessible, lowering the barrier for independent reproduction.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - update FFmpeg to a build incorporating commit 9d786e4b5e9b8482651928574de33772aeee7be1 or later, available at https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/9d786e4b5e9b8482651928574de33772aeee7be1. Downstream distributions (Debian, Ubuntu, RHEL, Homebrew) will package this fix at varying cadences, so check your package manager for updates or build FFmpeg from source at HEAD. Where patching is not immediately possible, restrict MPEG-PS muxing of untrusted input by removing or blocking the -f vob and -f mpegps output format options in pipeline configurations; this prevents the vulnerable code path from being triggered, though it disables MPEG-PS output entirely. Additionally, sandboxing FFmpeg worker processes using seccomp, AppArmor, or systemd's NoNewPrivileges and MemoryDenyWriteExecute settings significantly limits the blast radius of a successful overflow by preventing shellcode execution or privilege escalation, at the cost of some deployment complexity.

Affected VersionsENISA

FFmpeg 0 <9d786e4b5e9b8482651928574de33772aeee7be1

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

FFmpeg's MPEG-PS muxer, implemented in libavformat/mpegenc.c, allocates a fixed-size buffer on the stack to hold per-stream metadata during the muxing operation. CWE-121 (Stack-based Buffer Overflow) describes this class: the code writes stream data into the buffer without validating that the number of input streams stays within the buffer's declared capacity. When an input container supplies more streams than the buffer can hold, writes overflow into adjacent stack frames, corrupting return addresses or local variables. The affected CPE is cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*, indicating all FFmpeg versions across all platforms prior to the remediation commit. Because MPEG-PS muxing is a common output format in transcoding pipelines and broadcast workflows, the vulnerable code path is reachable in many real deployment configurations.

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 file processing required (AV:L, UI:R); no privileges needed to supply crafted input (PR:N); successful stack overflow yields full process compromise (C:H/I:H/A:H); no scope change observed (S:U).

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 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 7.8 HIGH

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 before commit 9d786e4 contains a stack buffer overflow in the MPEG-PS muxer (libavformat/mpegenc.c). When muxing input with more streams than the muxer's fixed-size stack buffer accommodates, the buffer is overflowed. A crafted input with an excessive number of streams triggers the overflow during MPEG-PS muxing.

Executive ViewAI

Why It Matters

FFmpeg versions prior to commit 9d786e4 contain a stack buffer overflow in the MPEG-PS muxer that enables arbitrary code execution when processing crafted media files with excessive stream counts. Organizations using FFmpeg for media transcoding, format conversion, or file processing workflows face direct risk of system compromise if handling media from untrusted or external sources. Immediate patching is required for any deployment that processes media files beyond internal corporate control.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
core multimedia framework in streaming, transcoding, and broadcast pipelines
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.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

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: Important
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 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