Skip to main content

FFmpeg EUVDEUVD-2026-120287

| CVE-2026-125198 LOW
Memory Leak (CWE-401)
2026-11-09 disclosure@vulncheck.com GHSA-4q2x-vx5w-h3m6
2.0
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft media file with oversized extradata
  2. Exploit
    Victim opens file in Android app using FFmpeg MediaCodec decoder
  3. Execution
    Each decoder configuration leaks native buffer
  4. Impact
    Repeated configuration exhausts memory, app/resource failure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Exploitation requires an FFmpeg build that uses the Android MediaCodec JNI decoder path (libavcodec/mediacodec_wrapper.c, the mediaformat_jni_setBuffer() routine), i.e. hardware-accelerated decoding on Android - it does not affect software-only FFmpeg builds or non-Android platforms. The attacker must deliver a crafted media file whose codec extradata is large, and a victim must open or play it (UI:P/UI:R), triggering MediaCodec decoder configuration. Because the leak is per-configuration, meaningful resource exhaustion requires repeated or looped decoder setup rather than a single decode. Limiting factors: local vector (file must reach the device/app), user interaction to process the file, dependence on the non-default MediaCodec code path, and impact confined to availability (no code execution or data exposure).

Impact

This is a genuinely low-priority issue, and the signals agree rather than conflict. The input CVSS 4.0 vector scores 2.0 (LOW) with AV:L (local), AC:H, AT:P (a specific attack requirement must hold), PR:N, UI:P (passive user interaction), and impact limited to VA:L - availability only, no confidentiality or integrity effect (VC:N/VI:N). This matches CWE-401 (memory leak) and the described outcome: native memory is leaked on each MediaCodec decoder configuration, degrading resource availability rather than enabling code execution or data disclosure. The vuln.today decision label is 'monitor', the lowest urgency tier, consistent with the low score. No CISA KEV entry is present, so this is not confirmed actively exploited; no EPSS probability was supplied; and no public exploit code or PoC reference is provided - the references are the upstream fix PR/commit and a VulnCheck advisory, not weaponized code. Net: a real but minor availability/resource-exhaustion bug limited to the Android MediaCodec JNI code path, not a priority for emergency patching. The only mild caveat is scope: FFmpeg is extremely widely deployed, but this specific defect only manifests in builds that use the Android MediaCodec JNI wrapper, which narrows real-world exposure well below FFmpeg's overall footprint.

Exploit ScenarioDerived

An attacker crafts a media file containing abnormally large codec extradata and gets a victim to open or play it in an Android application that uses FFmpeg's MediaCodec (JNI) hardware decoder. Each time the app configures the MediaCodec decoder, the buffer wrapped via NewDirectByteBuffer() is never freed, leaking native memory; repeated or looped decoder configuration drives resource exhaustion and can crash the app or degrade the device. No public exploit identified at time of analysis - only the upstream fix is published.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 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

Memory exhaustion in FFmpeg's Android MediaCodec JNI decoder path (libavcodec/mediacodec_wrapper.c) allows a crafted media file with oversized codec extradata to leak native memory each time a MediaCodec decoder is configured, degrading availability of affected Android applications over repeated decoder setup. Only builds that use the MediaCodec JNI hardware-decoding wrapper are in scope; software-only and non-Android FFmpeg builds are not affected. Impact is confined to availability, with no code execution or data exposure, no public exploit identified at time of analysis, and no confirmed active exploitation (not in CISA KEV); an upstream fix commit exists but a released patched version is not independently confirmed.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. Apply upstream commit e5d295b3cd467fc713300e208ba2dacc7ff603a0 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22550) or upgrade to the first FFmpeg release that includes it once that release is confirmed, and track the advisory at https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-memory-leak-via-mediacodec-jni-setbuffer. Where rebuilding or upgrading is not immediately possible, the exposure can be reduced by avoiding the MediaCodec JNI hardware-decode path for untrusted media and forcing software decoding instead, at the cost of higher CPU load, lower throughput, and increased battery drain on Android devices; additionally, restricting repeated or looped decoder re-initialization on attacker-supplied files (for example bounding decode sessions per file or per app) limits accumulation of the per-configuration leak, though it does not remove the underlying defect. Note that the vulnerability is local-vector and requires a victim to open or play a crafted file, so limiting ingestion of untrusted media from untrusted sources reduces practical reachability without addressing the leak itself.

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

MediaCodec is Android's native API for hardware-accelerated audio/video codecs, and FFmpeg reaches it through JNI glue in libavcodec/mediacodec_wrapper.c, where AMediaFormat buffers are marshalled between native and Java memory. In the affected code path, mediaformat_jni_setBuffer() allocated a native buffer with av_malloc(), copied the caller's data into it, and handed it to Java via NewDirectByteBuffer(); each configuration of a hardware decoder therefore left the native allocation unreachable and unfreed, a CWE-401 (missing release of memory after effective lifetime) defect. Because leaked volume scales with buffer size, crafted media carrying large extradata amplifies the leak per decoder configuration, and only repeated or looped decoder initialization accumulates enough loss to matter. The upstream patch commit e5d295b3cd467fc713300e208ba2dacc7ff603a0 rewrites this path to allocate a Java byte[] with NewByteArray(), fill it via SetByteArrayRegion(), wrap it with ByteBuffer.wrap(), and release the local reference, eliminating the native allocation entirely; the same commit hardens mediaformat_jni_getBuffer() to duplicate-and-slice the incoming ByteBuffer and copy through GetByteArrayRegion() instead of reading the direct buffer address. Reachability depends on the FFmpeg build actually using the MediaCodec JNI wrapper, which is a deployment-specific, typically hardware-decode configuration on Android.

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

A local Android app must decode an attacker-supplied file (AV:L, UI:R); the leak triggers deterministically on configuration (AC:L); impact is availability-only resource exhaustion (A:L, C/I:N).

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

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
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FFmpeg through 9.0.2 contains a memory leak vulnerability in mediaformat_jni_setBuffer() in libavcodec/mediacodec_wrapper.c that never frees buffers wrapped with NewDirectByteBuffer(). Attackers can supply crafted media files with large extradata, leaking native memory on each MediaCodec decoder configuration in Android applications and causing resource exhaustion.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
FFmpeg is ubiquitous, but the vulnerable path is limited to Android MediaCodec JNI builds
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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low

Priority Score

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

Attack Technique

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

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