Skip to main content

FFmpeg EUVDEUVD-2026-120207

| CVE-2026-125257 HIGH
Off-by-one Error (CWE-193)
2026-11-09 VulnCheck GHSA-76g4-x73x-7v54
7.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted audio to encoder
  2. Delivery
    Nellymoser trellis search invoked
  3. Exploit
    idx reaches OPT_SIZE off-by-one
  4. Execution
    One element written past opt/path heap
  5. Impact
    Adjacent 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 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

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

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

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

Vendor (VulnCheck) PRIMARY 7.3 HIGH
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
vuln.today AI 5.8 MEDIUM

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.

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

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
High
Vulnerable system: Integrity
High
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 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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media apps, servers, and pipelines worldwide
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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Medium

Priority Score

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

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.

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