CVE-2026-49271: libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder

Published Jun 19, 2026
·
Updated

Last updated 29 June 2026

Other sources

libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.1, the uncompressed HEIF decoder validates explicit icef compressed-unit offsets using unitoffset + unitsize. Because the addition can wrap, a crafted HEIF file can pass the range check and then construct a vector from iterators outside the compressed item buffer, producing an out-of-bounds heap read and crash. Version 1.22.1 patches the issue.

MITRE

Affected Software

3 affected components
libheif libheif<1.22.1
struktur Libheif<1.22.1
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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libheif to a version that resolves this vulnerability.

    Fixed in 1.22.1

Event History

Jun 19, 2026
CVE Published
via MITRE·05:16 PM
Data Sourced
via MITRE·05:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 29, 2026
Data Sourced
via Launchpad·07:01 PM
Description
Jun 30, 2026
Data Sourced
via Ubuntu·07:01 PM
RemedyDescriptionSeverityAffected Software
Jul 1, 2026
Data Sourced
via Debian·07:03 PM
DescriptionAffected 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-49271?

CVE-2026-49271 has a medium severity rating of 6.5.

2

How do I fix CVE-2026-49271?

To mitigate CVE-2026-49271, update libheif to version 1.22.1 or later.

3

What impact does CVE-2026-49271 have on my system?

CVE-2026-49271 can lead to an out-of-bounds read when processing crafted HEIF files.

4

Which software is affected by CVE-2026-49271?

CVE-2026-49271 affects versions of the libheif library prior to version 1.22.1.

5

When was CVE-2026-49271 published?

CVE-2026-49271 was published on June 19, 2026.

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