Home › CVE › Vulnerabilities
CVE-2026-125104 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesAnalysis
CVE-2026-125104: FFmpeg memory exhaustion via crafted legacy Monkey's Audio files (MEDIUM, CVSS 6.8)
CVE-2026-125104 is a MEDIUM-severity (CVSS 6.8) denial-of-service flaw in FFmpeg through 9.0.2, in which a crafted legacy Monkey's Audio file can force very large memory allocations. As of the available source, no fixed version or exploitation status has been published.
Key points
- FFmpeg through 9.0.2 is affected by a memory exhaustion flaw in the APE (Monkey's Audio) decoder.
- A crafted legacy APE file can force gigabyte-scale allocations, leading to denial of service.
- NVD rates the issue MEDIUM, CVSS 6.8.
- No fixed version or exploitation status is stated in the source.
What's affected
The National Vulnerability Database (NVD) entry for CVE-2026-125104 says FFmpeg through version 9.0.2 is affected. The flaw is in the Monkey's Audio (APE) decoder in libavcodec, specifically the ape_decode_frame() function in apedec.c. The available source does not list a fixed version, a patch, or which downstream packages and distributions ship affected builds.
How serious is it
NVD rates the issue MEDIUM with a CVSS score of 6.8. The decoder does not enforce the 73728-sample limit for legacy APE frames. A crafted legacy Monkey's Audio file can declare an extremely large block count, which causes the process to attempt gigabyte-scale memory allocations. The impact described is denial of service through memory exhaustion. The source does not describe any code execution or data exposure impact.
Is it being exploited?
The source does not say whether this vulnerability is being exploited in the wild. It also does not mention public proof-of-concept code or vendor advisories beyond the NVD description.
What to do
First, identify where FFmpeg is used, including standalone installs, transcoding and media-processing services, and applications that bundle its libraries. Because no fix is listed in the source, monitor the FFmpeg project and your operating system or vendor security channels for a patched release, and apply it as soon as it is available. Until then, limit exposure by avoiding processing of untrusted Monkey's Audio files where possible, running media decoding in isolated workers, and setting memory limits (for example, cgroup or container limits) so that a single job cannot exhaust host memory. Monitor media-processing hosts for unexpected memory spikes or repeated crashes of decoding processes, since these may indicate attempted abuse.
Recommended actions
- Inventory systems and applications that use FFmpeg or its libraries, including bundled copies.
- Watch the FFmpeg project and your vendor for a fixed release, and patch as soon as one is available.
- Until patched, avoid decoding untrusted Monkey's Audio files and run media processing in isolated workers with memory limits.
- Monitor media-processing hosts for unexpected memory growth or repeated decoder crashes.
Summary
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.
Severity breakdown
Medium · 6.8
An attacker without an account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-789: Memory Allocation with Excessive Size Value
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| FFmpeg | ≤ 9.0.2 | — |
References by type
Patches and fixed releases
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25703
- github.com/FFmpeg/FFmpeg/commit/968e9e948ed8c9ba90dbc875e60b843c755cf4ba
- vulncheck.com/advisories/ffmpeg-through-9.0.2-memory-exhaustion-dos-via…
Other references
Affected
- FFmpeg
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-125104?
CVE-2026-125104 is a MEDIUM-severity (CVSS 6.8) denial-of-service flaw in FFmpeg through 9.0.2, in which a crafted legacy Monkey's Audio file can force very large memory allocations. As of the available source, no fixed version or exploitation status has been published. Weakness type: Memory Allocation with Excessive Size Value (CWE-789).
How severe is CVE-2026-125104?
CVE-2026-125104 has a CVSS 4.0 base score of 6.8 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something.
Is CVE-2026-125104 being exploited?
Not as far as is known: CVE-2026-125104 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-125104?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125104?
Inventory systems and applications that use FFmpeg or its libraries, including bundled copies. Watch the FFmpeg project and your vendor for a fixed release, and patch as soon as one is available. Until patched, avoid decoding untrusted Monkey's Audio files and run media processing in isolated workers with memory limits.