Description
FFmpeg through 9.0.2 contains a memory exhaustion vulnerability in ape_decode_frame() in libavcodec/apedec.c that fails to enforce the 73728-sample limit for legacy APE frames. Attackers can supply a crafted legacy Monkey's Audio file declaring an enormous nblocks value to force gigabyte-scale allocations and cause denial of service.
Published: 2026-11-09
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service via uncontrolled memory allocation
Action: Apply Patch
AI Analysis

Impact

FFmpeg versions up to 9.0.2 include a vulnerability in the ape_decode_frame() function where the legacy Monkey's Audio frame limit of 73,728 samples is not enforced. An attacker can construct an APE file that declares a very large nblocks value, causing the decoder to allocate gigabytes of memory, destabilising the host process and resulting in a denial of service. This weakness falls under CWE-789, Uncontrolled Memory Allocation.

Affected Systems

All builds of FFmpeg up to and including 9.0.2 are affected. The CVE applies to the open‑source FFmpeg project, version 9.0.2 and all earlier releases.

Risk and Exploitability

The CVSS score of 6.8 classifies this as a moderate severity flaw, while the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. The attack vector is likely remote, inferred from the fact that an attacker can supply a crafted APE file to any component that performs decoding, such as media players or web servers that process user‑supplied audio. Exploitation requires only the ability to deliver a malicious file to the susceptible decoder, which is typical in many real‑world scenarios. Given the moderate score and absence of publicly known exploits, the risk is considered moderate but still significant because memory exhaustion can degrade or crash services.

Generated by OpenCVE AI on November 9, 2026 at 20:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FFmpeg to a version that includes the codec limit fix (the commit 968e9e948e… is the modern release).
  • If an urgent update is not possible, add input validation in the application to reject APE files with nblocks values exceeding 73728 before passing them to FFmpeg. This mitigates the memory allocation attack while the library can be upgraded.
  • If the legacy APE format is not required, disable or remove the legacy decoder module from FFmpeg so that the vulnerable code path can never be executed.

Generated by OpenCVE AI on November 9, 2026 at 20:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Description FFmpeg through 9.0.2 contains a memory exhaustion vulnerability in ape_decode_frame() in libavcodec/apedec.c that fails to enforce the 73728-sample limit for legacy APE frames. Attackers can supply a crafted legacy Monkey's Audio file declaring an enormous nblocks value to force gigabyte-scale allocations and cause denial of service.
Title FFmpeg through 9.0.2 Memory Exhaustion DoS via APE Decoder apedec.c
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-789
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

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

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T21:06:58.737Z

Reserved: 2026-11-09T17:44:26.336Z

Link: CVE-2026-125104

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:16:51.627

Modified: 2026-11-09T19:16:51.627

Link: CVE-2026-125104

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value