CVE-2026-47714: libheif has integer overflow in inline mask size calculation that causes undersized buffer allocation

Published Jul 21, 2026
·
Updated

Last updated 10 July 2026

Other sources

libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, the inline mask parsing code in libheif/region.cc contains an integer overflow. Both width and height are unsigned int (32-bit) values parsed from the HEIF file. Their product can exceed UINT32MAX, wrapping to a small value before the division by 8. This causes an undersized buffer allocation, leading to out-of-bounds memory access when the mask data is later interpreted as a width x height bitmap. Version 1.22.0 patches the issue.

MITRE

Affected Software

2 affected componentsFixes available
debian/libheif<=1.11.0-1, <=1.11.0-1+deb11u2, <=1.15.1-1+deb12u1, <=1.19.8-1, <=1.21.2-4
1.23.1-1
struktur Libheif<1.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libheif to a version that resolves this vulnerability.

    Fixed in 1.23.1-1
  2. Upgrade

    Upgrade libheif to a version that resolves this vulnerability.

    Fixed in 1.22.0

Event History

Jul 9, 2026
Data Sourced
via Debian·09:52 PM
DescriptionAffected Software
Jul 10, 2026
Data Sourced
via Ubuntu·09:53 PM
RemedyDescriptionSeverityAffected Software
Jul 21, 2026
CVE Published
via MITRE·09:04 PM
Data Sourced
via MITRE·09:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeaknessAffected Software
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-47714?

The severity of CVE-2026-47714 is medium, rated at 6.1.

2

What type of vulnerability is CVE-2026-47714?

CVE-2026-47714 is an integer overflow vulnerability.

3

How do I fix CVE-2026-47714?

To fix CVE-2026-47714, update libheif to version 1.21.3 or later.

4

What causes CVE-2026-47714?

CVE-2026-47714 is caused by an integer overflow in the inline mask size calculation leading to undersized buffer allocation.

5

Which software is affected by CVE-2026-47714?

CVE-2026-47714 affects versions of libheif prior to 1.21.3.

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