Skip to main content

FFmpeg EUVDEUVD-2026-120205

| CVE-2026-125255 MEDIUM
Use After Free (CWE-416)
2026-11-09 VulnCheck GHSA-phr3-qwpx-974c
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malformed MJPEG stream (SOF without SOI)
  2. Exploit
    Deliver to victim decoding via NVDEC/hwaccel
  3. Execution
    Pass stale raw_image_buffer pointer in ff_mjpeg_decode_sof()
  4. Impact
    Freed-buffer read crashes app or leaks heap contents

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
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 FFmpeg to be using a hardware-accelerated MJPEG decode path (the description names hwaccel decoders such as NVDEC) and a victim to decode an attacker-supplied MJPEG stream whose structure contains a SOF marker with no preceding SOI marker. Triggering depends on user interaction to process the malicious media (UI:P) and on the local decode occurring on the victim host (AV:L). Limiting factors that reduce real-world risk: high attack complexity (AC:H) and attack requirements (AT:P), dependence on the non-default hardware-accelerated decoding configuration (e.g., NVDEC enabled), and the need for the stale raw_image_buffer pointer to reach the hwaccel path - pure software decoding may not reach the vulnerable condition described.

Impact

This is a medium-severity, real-but-non-urgent issue. The supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, score 5.8) describes a locally-vectored flaw of high attack complexity with attack requirements (AT:P) and passive user interaction (UI:P) that must process a crafted stream; impact is primarily availability (VA:H, application crash) plus a low confidentiality component (VC:L, heap content leak), with no integrity impact. The vuln.today decision label is 'this_month' - meaningful but not act_now/emergency. No EPSS score, no CISA KEV listing, and no public exploit is identified at time of analysis; only a vendor PR, the fixing commit, and a VulnCheck advisory are referenced. Signals are consistent: a locally-triggered, config-dependent decoder bug with modest impact and no evidence of exploitation, so it ranks as routine-patch priority rather than a drop-everything emergency. One tension to verify: the description speaks of 'sending crafted MJPEG streams,' which can read as remote delivery, while CVSS rates AV:L - the vector is local because the malicious media must be decoded on the victim host, so delivery may be remote but triggering is local; treat it as a local/file-processing issue. The heap-leak path (potential info disclosure) is the more security-relevant outcome but is rated only Low.

Exploit ScenarioDerived

An attacker crafts a malformed MJPEG stream containing an SOF marker with no preceding SOI and gets a victim to decode it in an application using FFmpeg with a hardware-accelerated decoder such as NVDEC. When ff_mjpeg_decode_sof() runs, it passes a stale raw_image_buffer pointer to the hwaccel path, producing a freed-buffer read that crashes the application or discloses heap memory. No public exploit is identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Nov 09, 2026

Crafted MJPEG streams that carry a SOF marker without a preceding SOI marker can drive FFmpeg through 9.0.2 into a use-after-free during hardware-accelerated MJPEG decoding, where a stale raw_image_buffer pointer is handed to hwaccel decoders such as NVDEC. The result is a crash of the decoding application (availability impact rated high) or a limited disclosure of heap contents into the decoded frame path. Per the assessed vector (AV:L/AC:H/PR:N/UI:R) the trigger is a local, unauthenticated decode of attacker-supplied media that depends on the non-default hardware-accelerated decode configuration and on user interaction to open the file; no public exploit code was identified at time of analysis and the issue is not in CISA KEV, so this is a medium-severity, real-but-non-urgent issue.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - the correction is commit f58a6776546567367baf5223df9ffbfd289299f8, tracked as https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231, which rejects a SOF arriving without a preceding SOI and resets raw_image_buffer/raw_image_buffer_size per decoded frame, so rebuilding FFmpeg from a revision that contains it (anything newer than 9.0.2 that includes the commit) removes the condition; downstream distributors and applications that bundle FFmpeg should confirm their build carries the patch. Where rebuilding is not immediately possible, the exposure reduces to configurations that decode MJPEG through a hardware accelerator such as NVDEC, so forcing MJPEG to the software decoder avoids the path described in the advisory at the cost of higher CPU load and lower throughput for high-volume transcoding; rejecting or sanitizing media whose MJPEG elementary stream opens with SOF before SOI is a complementary input-validation control on ingest pipelines, but neither workaround substitutes for the patched decoder build. No vendor workaround beyond updating is described in the available sources.

Affected VersionsENISA

FFmpeg 0 ≤9.0.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

The flaw lives in libavcodec/mjpegdec.c, FFmpeg's MJPEG/JPEG-LS decoder. ff_mjpeg_decode_sof() processes start-of-frame markers and, in the vulnerable builds, does not verify that a raw_image_buffer has already been allocated by a preceding SOI (start-of-image) marker; a stream that begins with SOF therefore lets the function pass a stale pointer into the hardware-accelerated decode path (NVDEC and similar hwaccel decoders referenced in the description), which is a use-after-free (CWE-416) of a buffer that has already been released. The upstream fix adds a guard in ff_mjpeg_decode_sof() that logs "SOF without SOI" and returns AVERROR_INVALIDDATA when s->raw_image_buffer is NULL, and additionally clears s->raw_image_buffer and s->raw_image_buffer_size at the start of ff_mjpeg_decode_frame_from_buf() so no stale pointer survives across frames. The trigger requires the hwaccel path to be active; the sources do not describe the pure software-decode behavior beyond noting the dependence on hardware-accelerated decoding, and memory-safety exploitation beyond crash or partial heap disclosure is not demonstrated in the available data.

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 5.8 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Local decode of a crafted stream opened by a user (AV:L/UI:R); high complexity from required hwaccel/NVDEC config and marker ordering (AC:H); heap leak is C:L, crash is A:H, no integrity impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

FFmpeg through 9.0.2 contains a use after free vulnerability in libavcodec/mjpegdec.c that allows attackers to trigger freed buffer reads by sending a SOF marker without a preceding SOI. Attackers can supply crafted MJPEG streams causing ff_mjpeg_decode_sof() to pass a stale raw_image_buffer pointer to hwaccel decoders like NVDEC, crashing applications or leaking heap contents.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Ubiquitous
core multimedia library embedded in countless applications and platforms
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

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.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

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

Vendor StatusVendor

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