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.
Published: 2026-07-24
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Fri, 31 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

Sat, 25 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 24 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg

Fri, 24 Jul 2026 20:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-29T03:55:36.839Z

Reserved: 2026-07-23T20:45:17.817Z

Link: CVE-2026-66041

cve-icon Vulnrichment

Updated: 2026-07-25T01:03:27.519Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-24T20:18:21.240

Modified: 2026-08-07T00:32:23.513

Link: CVE-2026-66041

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-24T19:54:11Z

Links: CVE-2026-66041 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:45:07Z

Weaknesses