Skip to main content

FFmpeg CVE-2026-125221

| EUVDEUVD-2026-120310 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-11-09 disclosure@vulncheck.com GHSA-q537-2h8q-7vfj
6.8
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted FLAC stream to FFmpeg
  2. Exploit
    Parser creates many chained frame-header markers
  3. Execution
    score_header() recurses per marker
  4. Impact
    Thread stack exhausted, process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires the target's FFmpeg build to actually demux or parse an attacker-crafted FLAC stream containing many small valid-looking frame headers (the FLAC parser path in libavcodec/flac_parser.c must be reached). Per the CVSS vector, no authentication is required (PR:N) but passive user interaction is needed (UI:P) and the attack vector is local (AV:L) - the malicious input must be presented to the process. Limiting factors: impact is confined to a process crash (availability only - no code execution, no data disclosure); the victim must process the untrusted FLAC rather than it being reachable with zero interaction. Note that automated media pipelines (server-side transcoders, thumbnailers, upload scanners) satisfy the processing requirement without a human in the loop, raising practical reachability above what AV:L/UI:P suggests.

Impact

This is a denial-of-service-only flaw (CWE-674 uncontrolled recursion) whose real-world priority is moderate, not critical. The input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) scores 6.8 and tells a consistent story: no confidentiality or integrity impact, availability-only, and exploitation gated by passive user interaction (UI:P) and a local vector (AV:L) - i.e. the victim must process an attacker-supplied FLAC stream. The commit diff confirms the mechanism precisely: score_header() in flac_parser.c recursed over a chain of CRC-8-verified frame-header markers, and a FLAC stream packed with many small valid-looking headers drives recursion deep enough to exhaust the thread stack; the fix removes the recursion by scoring headers from last to first via a new prev pointer. No EPSS score, no CISA KEV listing, and no SSVC exploitation decision data were supplied, and no verified exploit code is referenced - only a fix PR, the upstream commit, and a VulnCheck advisory. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with a crash-only, interaction-dependent bug rather than an urgent RCE. One signal worth verifying with the vendor: the vector is AV:L/UI:P, but FFmpeg is routinely deployed as a server-side demuxer/transcoder that auto-ingests untrusted media, where the local/user-interaction gating is effectively satisfied automatically and the practical exposure is closer to remote - defenders running such pipelines should treat it as higher reachability than AV:L implies.

Exploit ScenarioDerived

An attacker crafts a FLAC stream stuffed with many small, valid-looking frame headers and gets a victim's FFmpeg to demux or parse it - for example by uploading it to a media service that transcodes user content, or by convincing a user to open it. During parsing, score_header() recurses once per header marker, exhausting the thread stack and crashing the FFmpeg process. No public exploit identified at time of analysis, though the trigger is well-described in the public fix commit and advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

Stack exhaustion in FFmpeg through 9.0.2 lets a crafted FLAC stream crash the demuxing process, a denial-of-service-only impact with no code execution or data disclosure. The root cause is uncontrolled recursion in score_header() in libavcodec/flac_parser.c: a FLAC file packed with many small valid-looking frame headers drives the scoring routine deep enough to overflow the thread stack. Reaching it requires the target build to actually demux or parse the attacker's FLAC (local attack vector, passive user interaction, unauthenticated per the CVSS PR:N), although automated media pipelines such as server-side transcoders, thumbnailers and upload scanners satisfy that requirement without a human in the loop. An upstream fix commit and pull request exist, but no tagged release beyond 9.0.2 is confirmed; no public exploit code and no CISA KEV entry were identified at time of analysis.

RemediationAI

The primary fix is upstream: build or upgrade to an FFmpeg revision containing commit 972fe1ccd326538fe9a6b5d5094b7880b5443429 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25569), which removes the recursion by scoring headers backwards over a prev-linked list. No tagged release newer than 9.0.2 is confirmed in the available data, so verify the commit is present in your distribution's or vendor's build rather than assuming a version bump alone is sufficient; the practical check is that score_header() is no longer called recursively. Where a patched build cannot yet be deployed, compensating controls should target the crash-only impact: run transcoders, thumbnailers and upload scanners that touch untrusted FLAC in a disposable, unprivileged worker with a hard per-job timeout and automatic restart, so a stack overflow kills a throwaway process instead of a shared pipeline component; keep those workers isolated from stateful services and message brokers; and where FLAC ingestion is not business-critical, reject or quarantine untrusted FLAC uploads at the boundary until patched. Raising thread stack size only moves the crash threshold for sufficiently large header floods and should not be relied on as a fix.

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 FLAC parser in libavcodec maintains a linked list of FLACHeaderMarker entries, each representing a candidate frame header that has passed CRC-8 validation, and score_header() ranks them to pick the most plausible frame boundary during demuxing. The vulnerable implementation scores each header by recursing into its children, so a stream containing a long chain of small, apparently valid frame headers produces recursion proportional to the header count until the thread stack is exhausted - the CWE-674 uncontrolled recursion class, with availability-only impact. The upstream commit 972fe1ccd326538fe9a6b5d5094b7880b5443429 (pull request 25569) restructures the algorithm: it adds a prev back-pointer to FLACHeaderMarker, tracks the last list element, and scores headers from the last one backwards so children are already scored when their parents are evaluated, eliminating the recursive call entirely. The flaw is version-bounded rather than configuration-specific: ENISA EUVD lists FFmpeg 0 through 9.0.2, i.e. any build whose libavcodec FLAC parser path is exercised, and the vulnerable code line is documented at libavcodec/flac_parser.c#L603 in tag n9.0.2. The trigger condition for a given input is not described beyond the frame-header flood; no code-execution, memory-corruption or information-leak primitive is reported.

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

Crafted file must be processed, so AV:L and UI:R; no auth needed (PR:N); impact is a crash only, so C:N/I:N/A:H with scope unchanged.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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
None
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 an uncontrolled recursion vulnerability in score_header() in libavcodec/flac_parser.c that allows attackers to exhaust the thread stack via crafted FLAC input. Attackers can supply a FLAC stream packed with many small valid-looking frame headers, forcing deep recursion that crashes the process during demuxing or parsing.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media apps, servers, and transcoding pipelines
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.2%
Patch available No
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
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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

Vendor StatusVendor

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