Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted audio to encoder
-
DeliveryNellymoser trellis search invoked
-
Exploitidx reaches OPT_SIZE off-by-one
-
ExecutionOne element written past opt/path heap
-
ImpactAdjacent heap corrupted, crash or further corruption
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
|
| Exploitation Conditions | Exploitation requires an application that uses FFmpeg's Nellymoser audio encoder (nellymoserenc) with trellis quantization enabled, and that the attacker can supply the crafted audio that gets encoded (UI:P / AV:L - a local user or application must actively process the input). This is a non-default, narrow path: default FFmpeg usage, decode-only workflows, and other codecs are not affected. Limiting factors per the CVSS 4.0 vector: local attack vector (not remotely reachable on its own), AC:H plus AT:P (a specific condition must hold for idx to reach OPT_SIZE), and required interaction by the encoding application. These sharply reduce realistic exposure despite FFmpeg's ubiquity. |
| Impact | This is a genuine but constrained bug, not a drop-everything emergency. The signals are internally consistent and point to low real-world urgency: the CVSS 4.0 vector is AV:L (local), AC:H, AT:P and UI:P - meaning exploitation is local, requires a specific attack condition, and depends on an application actively feeding attacker-supplied audio into the Nellymoser encoder. Exploitation status is 'no public exploit identified at time of analysis' - the input shows no KEV listing and no confirmed PoC (the references are the FFmpeg pull request, the fix commit, a source line and a VulnCheck advisory, none of which is verified working exploit code). No EPSS score is provided, so probabilistic exploitation likelihood cannot be quantified from this data. The vuln.today priority is 'this_week' (not act_now/emergency), which matches the picture of a patchable, non-actively-exploited memory-safety defect. The main caveat: the vendor-rated VC:H/VI:H/VA:H impact is optimistic for a single-element (off-by-one) heap write; CWE-193 and the one-element overwrite described make reliable code execution plausible but unproven, with denial of service the more certain outcome. Net: real priority for anyone that encodes Nellymoser audio with trellis, low priority for everyone else running FFmpeg in default/decode-only workflows. |
| Exploit ScenarioDerived | An attacker submits a crafted audio stream to a service or tool that re-encodes audio to Nellymoser with trellis quantization enabled. During encoding, get_exponent_dynamic() lets idx reach OPT_SIZE, writing one element past the opt and path heap allocations and corrupting adjacent memory, which most reliably crashes the process and could, under favorable heap layout, lead to further memory corruption. No public, verified exploit code is identified at time of analysis; exploitation is local and requires the specific trellis-encoding code path, not FFmpeg's common decode workflows. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
An off-by-one heap overflow in FFmpeg's Nellymoser audio encoder (libavcodec/nellymoserenc.c, get_exponent_dynamic()) affects releases through 9.0.2 and lets a crafted audio input drive the trellis exponent index to OPT_SIZE, writing one element past the opt and path heap allocations and corrupting adjacent memory. The bug is not reachable through decoding or through default FFmpeg usage: the victim application must be encoding audio to Nellymoser with trellis quantization enabled and must process attacker-supplied audio, which is a local, non-default, interaction-dependent path. No public exploit code has been identified at time of analysis and there is no KEV listing; the upstream fix is a one-line clamp change already committed to FFmpeg, and the overall picture is a constrained but genuine memory-safety defect that warrants patching on a this-week cadence rather than emergency response.
RemediationAI
Apply the upstream fix commit 733bec3e19759520ccdbeb6c3c0cae280bbe6dc5 (merged via FFmpeg pull request 24471), which changes the bound check in get_exponent_dynamic() from FFMIN(OPT_SIZE, ...) to FFMIN(OPT_SIZE - 1, ...); the vendor reports a patch is available, but no tagged release version carrying the fix is independently confirmed in the supplied data, so verify the commit is present in whatever FFmpeg build or bundled library you ship before treating it as remediated. Where rebuilding immediately is not possible, the most direct compensating control is to disable trellis quantization for Nellymoser encoding (the trellis option), which removes the vulnerable exponent search path at the cost of slightly lower encoding efficiency and larger output for that codec; alternatively, prevent untrusted audio from reaching a Nellymoser encode path at all, accepting the functional loss of that encoding mode. Because the flaw is a one-element heap overwrite with high availability impact, do not rely on crash-only detection. Track the vendor advisory at https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-overflow-via-nellymoser-encoder-trellis-search and the code references above for a released patched version, and schedule the update on a this-week cadence rather than an emergency one, given the local, interaction-dependent, non-default trigger.
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
FFmpeg is the widely embedded multimedia framework whose libavcodec provides both decoders and encoders, including nellymoserenc for the Nellymoser Asao speech codec. The affected routine, get_exponent_dynamic(), drives a trellis-style search over candidate exponent vectors, using the OPT_SIZE-bounded arrays opt[] and path[] to track the best quantization path per band. The root cause is CWE-193 (off-by-one): the upper bound was computed as FFMIN(OPT_SIZE, cand[band - 1] + q) rather than FFMIN(OPT_SIZE - 1, ...), so the search index idx could legally equal OPT_SIZE and address one element beyond the end of both allocations. The supplied fix commit 733bec3e19759520ccdbeb6c3c0cae280bbe6dc5 changes only that clamp to OPT_SIZE - 1, confirming the defect is a single boundary error in the encoder's trellis path search rather than a broader memory-management flaw. The 3.1 assessment (AV:L/AC:H/PR:N/UI:R, C:L/I:L/A:H) reflects that a specific condition must hold for idx to reach OPT_SIZE and that a local application must actively encode the crafted input; decode paths, other codecs, and ordinary remux/transcode pipelines that do not select the Nellymoser encoder with trellis are outside the affected path.
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:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local because the attacker's audio must be encoded by the Nellymoser+trellis path (AV:L/UI:R), with a specific triggering condition (AC:H); a single-element off-by-one most reliably yields a crash (A:H) with limited C/I.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
FFmpeg through 9.0.2 contains an off-by-one heap overflow vulnerability in get_exponent_dynamic() in libavcodec/nellymoserenc.c that allows writing one element past the opt and path allocations. Attackers can supply crafted audio to applications encoding Nellymoser with trellis enabled, causing idx to equal OPT_SIZE and overwrite adjacent heap memory.
Executive ViewAI
A memory corruption vulnerability exists in FFmpeg's Nellymoser audio encoder that could be triggered if an application processes attacker-supplied audio while using this non-default encoding path. The affected component is not used in standard decoding scenarios, so the practical risk is limited to specialized encoding workflows; however, successful exploitation could lead to memory corruption requiring application restart and potential data integrity issues.
Apply vendor patch.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
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-120207
GHSA-76g4-x73x-7v54
NVD
CVE.org
EPSS
Exploit-DB