Cloudanix VulnDB

CVE-2026-66041

High · 8.8

CVSS

8.8

EPSS

0.5%

Published

Jul 24, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A video tool can be tricked by a specially made subtitle file into crashing or letting attackers run their own code on the system.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Remote Code Execution
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap out-of-bounds write in the vf_quirc filter when processing a crafted PGS/SUP subtitle file whose second presentation has larger dimensions than the first, causing av_image_copy_plane to overflow the undersized libquirc grayscale buffer and corrupt adjacent heap memory.

Why it matters to the business

Media processing pipelines that ingest untrusted subtitles can experience crashes or remote code execution, leading to service disruption, data loss, or compromise of systems handling video content.

How an attack unfolds

An attacker crafts a PGS/SUP subtitle file with mismatched frame dimensions between presentations, supplies it to an application using the vulnerable FFmpeg vf_quirc filter, triggers av_image_copy_plane to write beyond the allocated buffer, and achieves heap corruption that can be leveraged for code execution.

How to fix it

Update FFmpeg to a build containing commit 4da9812 or later; rebuild applications linking against the patched library; disable the vf_quirc filter where subtitle processing of untrusted PGS/SUP files is not required.

How to confirm the fix worked

Confirm the installed FFmpeg binary or library reports a version after 8.1.2 or contains commit 4da9812; test processing of the original proof-of-concept subtitle file and verify absence of heap corruption or crash.

Typical attack path

  1. Identify a target application or service that uses FFmpeg 7.0-8.1.2 with the vf_quirc filter enabled
  2. Generate or obtain a PGS/SUP subtitle file with a second presentation larger than the first
  3. Deliver the crafted subtitle file to the target via upload, stream, or file processing workflow
  4. Trigger subtitle decoding and filter execution to induce the out-of-bounds write
  5. Exploit resulting heap corruption to execute arbitrary code or cause denial of service

How to detect it

Monitor FFmpeg process logs and crash reports for heap corruption indicators during subtitle decoding; inspect application logs for references to vf_quirc or PGS/SUP subtitle handling failures; correlate with file uploads containing subtitle streams.

  • vf_quirc
  • av_image_copy_plane
  • libquirc grayscale
  • PGS/SUP subtitle
  • heap corruption

What your security team should do

  • Prioritize patching FFmpeg instances that process untrusted subtitles within 30 days given available exploit maturity
  • Inventory all media pipelines and containers using FFmpeg 7.0-8.1.2
  • Apply the upstream commit or upgrade to the next released version containing the fix
  • Restrict untrusted subtitle file ingestion until patches are deployed

The record

FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vf_quirc filter that allows an attacker to corrupt heap memory by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions. Attackers can provide a subtitle file whose second presentation has larger dimensions than its first, causing av_image_copy_plane() to copy data exceeding the initial allocation size into the undersized libquirc grayscale image buffer, resulting in heap corruption and process crash with potential for code execution.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities