CVE-2026-66037
Medium · 6.5CVSS
6.5
EPSS
0.3%
Published
Jul 24, 2026
CISA due date
—
Cloudanix analysis
A media-processing program can be made to crash by feeding it an extremely small file that forces the program to reserve enormous amounts of memory.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits an attacker-controlled count_label value in an IAMF file to trigger av_calloc(count_label, sizeof(*language_label)) in mix_presentation_obu() before OBU data validation, producing an allocation amplification of ~126 MB per input byte and exhausting process memory during format probing.
Why it matters to the business
Applications that ingest or probe untrusted media files may experience abrupt crashes or OOM termination, interrupting media pipelines, transcoding jobs, and any downstream services that rely on FFmpeg.
How an attack unfolds
An attacker supplies a 17-byte crafted IAMF file containing an oversized count_label field; when FFmpeg performs format detection the vulnerable demuxer path allocates multi-gigabyte memory before any size check, resulting in memory exhaustion.
How to fix it
Apply the patch from commit 5d7112c or upgrade FFmpeg beyond version 8.1.2 so that count_label validation occurs before the av_calloc call; rebuild any dependent applications against the fixed library.
How to confirm the fix worked
Verify the installed FFmpeg version incorporates commit 5d7112c; recompile with the updated source and confirm that a crafted test file no longer produces excessive allocations during probing.
Typical attack path
- Construct a minimal IAMF file embedding an attacker-chosen count_label value
- Deliver the file to any FFmpeg instance that performs format probing or decoding
- Trigger the IAMF demuxer path in libavformat/iamf_parse.c
- Induce uncontrolled allocation that exhausts available memory or triggers OOM-kill
How to detect it
Monitor system and application logs for FFmpeg processes that terminate with out-of-memory signals or abrupt high-memory spikes while processing media files; inspect any recent IAMF-containing inputs that coincide with those events.
What your security team should do
- Upgrade all FFmpeg installations to a version containing commit 5d7112c as soon as packages are available
- Disable IAMF demuxer support via build-time configuration where the feature is not required
- Add memory-usage monitoring and restart policies for FFmpeg worker processes that handle untrusted input
The record
FFmpeg through 8.1.2, fixed in commit 5d7112c, contains an uncontrolled resource consumption vulnerability in the IAMF demuxer that allows an unauthenticated attacker to cause multi-gigabyte memory allocation from a 17-byte input file by supplying a crafted count_label field. The mix_presentation_obu() function in libavformat/iamf_parse.c calls av_calloc(count_label, sizeof(*language_label)) with an attacker-controlled value before validating available OBU data, enabling an allocation amplification of approximately 126 million bytes per input byte that exhausts process memory or triggers an OOM-kill during format probing.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-116646 Tanium addressed an uncontrolled resource consumption vulnerability in Threat Response. CWE-770
- CVE-2026-111751 Angular is a development platform for building mobile and desktop web applications using… CWE-770
- CVE-2026-63501 ag-psd is a JavaScript library for reading and writing Photoshop Document files. CWE-770
- CVE-2026-115715 Allocation of Resources Without Limits or Throttling (CWE-770) in Elasticsearch can lead… CWE-770
- CVE-2026-115716 Allocation of Resources Without Limits or Throttling (CWE-770) in APM Server can lead to… CWE-770
- CVE-2026-118487 In Eclipse Vert.x versions [4.0.0, 4.5.35] or [5.0.0, 5.2.2], the `FrameParser` in… CWE-770
- CVE-2026-108147 An issue was discovered in Django 6.1 before 6.1.3, 6.0.4 before 6.0.10, and 5.2.13… CWE-770
- CVE-2026-121412 FreeRDP from 3.0.0 before 3.32.2 contains an uncontrolled resource consumption… CWE-770