Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malformed MJPEG stream (SOF without SOI)
-
ExploitDeliver to victim decoding via NVDEC/hwaccel
-
ExecutionPass stale raw_image_buffer pointer in ff_mjpeg_decode_sof()
-
ImpactFreed-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
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
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
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
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-120205
GHSA-phr3-qwpx-974c
NVD
CVE.org
EPSS
Exploit-DB