Description
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.
Published: 2026-11-09
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Heap Overflow leading to potential memory corruption
Action: Apply Patch
AI Analysis

Impact

An off‑by‑one heap overflow occurs in the function get_exponent_dynamic() in libavcodec/nellymoserenc.c. When an attacker supplies a crafted audio stream to a program that encodes Nellymoser with trellis enabled, the internal variable idx can equal OPT_SIZE, causing the code to write one element past the opt and path allocations. This memory corruption can lead to crashes or, if an attacker can control the overwritten data, arbitrary code execution. The vulnerability is classified as an object or buffer off‑by‑one error (CWE‑193).

Affected Systems

FFmpeg and related FFmpeg‑based media processing applications running FFmpeg version 9.0.2 or earlier are affected. Applications that invoke the Nellymoser encoder with trellis support are vulnerable, regardless of the host operating system.

Risk and Exploitability

The CVSS score of 7.3 indicates a moderate‑to‑high severity risk. EPSS data are not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply crafted audio to a processing component; therefore, the attack vector is likely local or remote, depending on the deployment of the media application. If the attacker succeeds, the impact could include application crashes and potential arbitrary code execution on the system running FFmpeg.

Generated by OpenCVE AI on November 9, 2026 at 21:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to a recent version that contains the fix for the off‑by‑one heap overflow (9.0.3 or later).
  • If an upgrade cannot be performed immediately, disable trellis encoding for Nellymoser in your media workflow or remove the Nellymoser encoder from the application altogether.
  • When update or configuration changes are not possible, validate or sanitize incoming audio files before they are passed to FFmpeg to ensure the crafted data does not trigger the vulnerability.

Generated by OpenCVE AI on November 9, 2026 at 21:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
Description 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.
Title FFmpeg through 9.0.2 Heap Overflow via Nellymoser Encoder Trellis Search
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-193
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:12:01.153Z

Reserved: 2026-11-09T18:15:32.455Z

Link: CVE-2026-125257

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T20:18:11.930

Modified: 2026-11-09T20:18:11.930

Link: CVE-2026-125257

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T21:30:11Z

Weaknesses