CVE-2026-142496: libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check

Published Dec 2, 2026
·
Updated

libheif 1.16.0 before 1.23.4 contains an uncontrolled recursion vulnerability in HeifFile::checkforrefcyclerecursion() that allows attackers to crash the process via crafted files. Attackers can supply a HEIF or AVIF file under 1 MB with a long linear chain of 'dimg' references to exhaust the stack during heifcontextreadfromfile(), causing a segmentation fault.

Affected Software

1 affected component
libheif libheif>=1.16.0<1.23.4

Event History

Dec 2, 2026
CVE Published
via MITRE·05:42 PM
Data Sourced
via MITRE·05:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:19 PM
DescriptionSeverityWeakness
Event
via NVD·06:19 PM

Frequently Asked Questions

1

Which deployments are exposed?

Applications using libheif versions 1.16.0 through versions earlier than 1.23.4 are affected when they process attacker-supplied HEIF or AVIF files.

2

What does an attacker need to trigger the issue?

The attacker needs to provide a crafted HEIF or AVIF file containing a long linear chain of dimg references and have the application parse it through heif_context_read_from_file(). The malicious file can be smaller than 1 MB.

3

How can I determine whether an installation is affected?

Check the bundled or installed libheif version. Versions starting at 1.16.0 and before 1.23.4 should be treated as affected; version 1.23.4 is outside the stated affected range.

4

What is the operational impact of successful exploitation?

Processing the crafted file can exhaust the process stack and cause a segmentation fault, resulting in a process crash and denial of service.

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