CVE-2026-66041: FFmpeg 7.0 - 8.1.2 Heap Out-of-Bounds Write via vf_quirc Filter

Published Jul 24, 2026
·
Updated

FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vfquirc 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 avimagecopyplane() 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 Software

1 affected component
FFmpeg FFmpeg>=7.0<=8.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FFmpeg vf_quirc filter to a version that resolves this vulnerability.

    Patch 4da9812

Event History

Jul 24, 2026
CVE Published
via MITRE·07:54 PM
Data Sourced
via MITRE·07:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-66041?

CVE-2026-66041 has a high severity rating of 8.8.

2

How do I fix CVE-2026-66041?

To fix CVE-2026-66041, upgrade FFmpeg to version 8.1.3 or later, which contains the necessary patches.

3

What is the nature of the vulnerability in CVE-2026-66041?

CVE-2026-66041 is a heap out-of-bounds write vulnerability in the vf_quirc filter of FFmpeg.

4

What types of attacks can exploit CVE-2026-66041?

Attackers can exploit CVE-2026-66041 by supplying a specially crafted PGS/SUP subtitle file with incorrect frame dimensions.

5

Which versions of FFmpeg are affected by CVE-2026-66041?

CVE-2026-66041 affects FFmpeg versions from 7.0 to 8.1.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203