CVE-2026-47247: libheif Vulnerable to Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane Allocation

Published Jul 21, 2026
·
Updated

libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, two bugs in libheif chain to leak process heap memory as visible pixel values in decoded grid images. An attacker who uploads a crafted AVIF/HEIC file to any server-side image processor (WordPress, Sharp/libvips, ImageMagick, etc.) can recover heap data - including library function pointers sufficient to defeat ASLR, or any other secret - from the publicly-downloadable transcoded JPEG/PNG/WebP output. Local attack vectors are also possible. Version 1.22.0 fixes the issue.

Other sources

libheif Vulnerable to Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane Allocation

— Microsoft

Affected Software

11 affected componentsFixes available
libheif libheif<1.22.0
struktur Libheif<1.22.0
ubuntu/libheif<1.6.1-1ubuntu0.1~esm3
1.6.1-1ubuntu0.1~esm3
ubuntu/libheif<1.12.0-2ubuntu0.1~esm3
1.12.0-2ubuntu0.1~esm3
ubuntu/libheif<1.17.6-1ubuntu4.4
1.17.6-1ubuntu4.4
ubuntu/libheif<1.20.2-1ubuntu0.4
1.20.2-1ubuntu0.4
ubuntu/libheif<1.21.2-3ubuntu0.1
1.21.2-3ubuntu0.1
debian/libheif<1.15.1-1+deb12u2
1.15.1-1+deb12u2
debian/libheif<1.19.8-1+deb13u1
1.19.8-1+deb13u1
debian/libheif<1.23.1-1
1.23.1-1
debian/libheif<=1.15.1-1+deb12u1
1.15.1-1+deb12u21.19.8-1+deb13u11.23.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.6.1-1ubuntu0.1~esm3
  2. Upgrade

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

    Fixed in 1.12.0-2ubuntu0.1~esm3
  3. Upgrade

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

    Fixed in 1.17.6-1ubuntu4.4
  4. Upgrade

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

    Fixed in 1.20.2-1ubuntu0.4
  5. Upgrade

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

    Fixed in 1.21.2-3ubuntu0.1
  6. Upgrade

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

    Fixed in 1.15.1-1+deb12u2
  7. Upgrade

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

    Fixed in 1.19.8-1+deb13u1
  8. Upgrade

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

    Fixed in 1.23.1-1
  9. Upgrade

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

    Fixed in 1.15.1-1+deb12u2Fixed in 1.19.8-1+deb13u1Fixed in 1.23.1-1
  10. Upgrade

    Upgrade libheif to a version that resolves this vulnerability.

    Fixed in 1.22.0

Event History

Jul 21, 2026
CVE Published
via MITRE·09:16 PM
Data Sourced
via MITRE·09:16 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·10:17 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness
Jul 27, 2026
Data Sourced
via NVD·03:20 PM
Affected Software
Nov 17, 2026
Data Sourced
via Microsoft·07:11 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-47247?

CVE-2026-47247 has a high severity rating of 7.5.

2

What does CVE-2026-47247 affect?

CVE-2026-47247 affects the libheif library used for decoding and encoding HEIF and AVIF file formats.

3

How do I fix CVE-2026-47247?

To fix CVE-2026-47247, upgrade to libheif version 1.22.0 or later.

4

What type of vulnerability is CVE-2026-47247?

CVE-2026-47247 is classified as an information leak vulnerability.

5

What do the specific attack vectors for CVE-2026-47247 involve?

CVE-2026-47247 can be exploited by uploading a crafted AVIF/HEIC file to vulnerable server-side image processors.

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