Description
FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a heap buffer overflow vulnerability in the Cook multichannel decoder in libavcodec/cook.c that fails to verify subpacket channel masks are disjoint. Attackers can supply a crafted RealMedia Cook stream with overlapping subpacket masks, causing cook_decode_frame() to write decoded samples beyond allocated output planes in any application decoding the file.
Published: 2026-11-09
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Heap buffer overflow that can corrupt memory and potentially allow arbitrary code execution in applications decoding Cook streams
Action: Apply patch
AI Analysis

Impact

FFmpeg versions prior to 8.1.3 and the 9.x series before 9.0.2 contain a heap buffer overflow in the Cook multichannel decoder. The flaw arises because the software does not ensure that subpacket channel masks are disjoint, allowing an attacker to supply a crafted RealMedia Cook stream with overlapping masks. When cook_decode_frame processes such input it writes decoded samples beyond the bounds of allocated output planes, corrupting heap memory. Depending on the memory corruption context, this could lead to application crashes, privilege escalation, or remote code execution if the application runs with elevated privileges.

Affected Systems

The vulnerability affects the FFmpeg project, specifically all builds of the FFmpeg binary prior to release 8.1.3 and any 9.x versions before 9.0.2. Users running these legacy FFmpeg releases on any platform that decodes files via the Cook decoder are exposed to the flaw.

Risk and Exploitability

The CVSS score of 8.5 classifies the issue as high severity. Although EPSS information is unavailable and the vulnerability is not listed in the CISA KEV catalog, the failure to validate channel masks provides an exploitable heap overflow. The likely attack vector is the delivery of a malicious Cook stream file to an application; the attacker must be able to provide the file to the decoder, which can occur through local media files or network streams sent to vulnerable software.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to version 8.1.3 or 9.0.2 or later where the Cook decoder ensures channel masks are disjoint.
  • If an upgrade is not possible, configure the application to reject or skip RealMedia Cook streams that contain overlapping channel masks, effectively disabling the vulnerable decoder for untrusted input.
  • Rebuild or obtain FFmpeg binaries that incorporate the patch from the same source code and ensure no custom or third‑party modules re‑introduce the original logic for mask validation.

Generated by OpenCVE AI on November 9, 2026 at 22:05 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 before 8.1.3 and 9.x before 9.0.2 contains a heap buffer overflow vulnerability in the Cook multichannel decoder in libavcodec/cook.c that fails to verify subpacket channel masks are disjoint. Attackers can supply a crafted RealMedia Cook stream with overlapping subpacket masks, causing cook_decode_frame() to write decoded samples beyond allocated output planes in any application decoding the file.
Title FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Buffer Overflow in Cook Multichannel Decoder
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-787
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/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:11:22.136Z

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

Link: CVE-2026-125203

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-125203

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T22:45:07Z

Weaknesses