CVE-2026-107678

FFmpeg through 9.0.2 Stack Exhaustion via Recursive Free of pssh Boxes

Published Oct 8, 2026 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
Description
FFmpeg through 9.0.2 contains a stack exhaustion vulnerability in av_encryption_init_info_free() in libavutil/encryption_info.c, which recursively frees AVEncryptionInitInfo linked lists built by the MOV demuxer's mov_read_pssh(). Attackers can supply a crafted MP4 file with tens of thousands of small pssh boxes to exhaust the stack and crash the process, while also causing quadratic CPU consumption.

Analysis

AI-generated

Technical impact

The flaw resides in FFmpeg's decryption initialization path for MOV files. When an attacker supplies an MP4 containing thousands of tiny pSSH boxes, the demuxer builds an extensive linked list of AVEncryptionInitInfo structures. Freeing that list causes av_encryption_init_info_free() to recurse for every node, exhausting the stack and crashing the process. The recursive traversal also results in quadratic CPU usage, which can degrade performance or lead to a resource exhaustion denial of service. This behavior corresponds to CWE-674 (Uncontrolled Recursion) and CWE-770 (Out‑of‑Bounds Write).

Affected Systems

FFmpeg versions 9.0.2 and earlier are affected. The vulnerable code resides in libavformat/mov.c and libavutil/encryption_info.c. Any build of FFmpeg that has not applied the subsequent patch and is used to process MP4 files is susceptible.

Risk and Exploitability

The CVSS score of 5.7 indicates moderate severity, with potential to crash the process and consume excessive CPU, leading to denial of service. The EPSS score is not available, so the likelihood of exploitation is unclear from publicly available data. The flaw is not listed in CISA's KEV catalog. An attacker can exploit the issue by creating a malicious MP4 file with an unusually large number of small pSSH boxes. The likely attack vector is local file input to an application that uses the vulnerable FFmpeg build, but the risk could be extended to remote exploitation if the application provides a file upload or media ingestion endpoint that accepts MP4 content.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to 9.0.3 or later, which removes the recursive free in av_encryption_init_info_free()
  • If an upgrade is not possible, validate or reject MP4 files that contain a large number of pSSH boxes before passing them to FFmpeg
  • Configure monitoring to detect crashes or abnormal CPU spikes during MP4 decoding to identify exploitation attempts

Generated by OpenCVE AI on October 9, 2026 at 03:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FFmpeg through 9.0.2 contains a stack exhaustion vulnerability in av_encryption_init_info_free() in libavutil/encryption_info.c, which recursively frees AVEncryptionInitInfo linked lists built by the MOV demuxer's mov_read_pssh(). Attackers can supply a crafted MP4 file with tens of thousands of small pssh boxes to exhaust the stack and crash the process, while also causing quadratic CPU consumption.
Title FFmpeg through 9.0.2 Stack Exhaustion via Recursive Free of pssh Boxes
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-674
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-674

    Uncontrolled Recursion

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 5:51 PM
Reserved
Oct 8, 2026, 3:11 PM
Status
Analyzed
Published
Oct 8, 2026, 4:17 PM
Modified
Oct 14, 2026, 11:55 PM
Severity
Moderate
Public date
Oct 8, 2026, 3:28 PM