CVE-2026-66041

FFmpeg 7.0 - 8.1.2 Heap Out-of-Bounds Write via vf_quirc Filter

Published Jul 24, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a heap out-of-bounds write (CWE-787) in the vf_quirc filter of FFmpeg. An attacker can supply a malformed PGS/SUP subtitle file where the second frame’s dimensions exceed the first frame’s, causing av_image_copy_plane() to write beyond the allocated buffer for a libquirc grayscale image. This corruption can trigger a process crash and, if the heap overwrite lands on executable or control data, could lead to arbitrary code execution.

Affected Systems

The flaw affects FFmpeg version 7.0 up through 8.1.2, including any builds that enable the vf_quirc filter. All users running these releases on any platform are potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.7 classifies the defect as high severity, but the EPSS score of less than 1% suggests a low likelihood of widespread exploitation at present. The vulnerability is not listed in KEV, indicating no known active exploitation. Attackers would need to supply a specially crafted subtitle file, implying the primary vector is local or any service that processes untrusted subtitle input. If exploitation succeeds, it can corrupt memory to enable remote code execution if memory corruption can be hijacked.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official FFmpeg patch that includes commit 4da9812e25894fb51d62a8875cfa8eb39b.
  • Upgrade to FFmpeg 8.1.3 or any later release that contains the fix.
  • If an upgrade is not immediately possible, disable the vf_quirc filter in your FFmpeg configuration or remove the filter from your processing chain when handling untrusted subtitle files.

Generated by OpenCVE AI on August 3, 2026 at 19:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
Type Values Removed Values Added
Description 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.
Title FFmpeg 7.0 - 8.1.2 Heap Out-of-Bounds Write via vf_quirc Filter
Weaknesses CWE-787
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 29, 2026, 3:55 AM
Reserved
Jul 23, 2026, 8:45 PM
Status
Analyzed
Published
Jul 24, 2026, 8:18 PM
Modified
Oct 24, 2026, 1:10 PM
Severity
Important
Public date
Jul 24, 2026, 7:54 PM