Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted FLAC stream to FFmpeg
-
ExploitParser creates many chained frame-header markers
-
Executionscore_header() recurses per marker
-
ImpactThread 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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
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
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-120310
GHSA-q537-2h8q-7vfj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB