Where
-Infinity
0

Vendor Risk Score

See how libheif compares to other vendors in security performance

View Risk Score →
Severity
6.5
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Last updated 19 June 2026

1 / 3
Source: Ubuntu
First published (updated )
Severity
8.8
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Last updated 19 June 2026

1 / 3
Source: Ubuntu
First published (updated )
Severity
6.5
Null Pointer Dereference
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Last updated 19 June 2026

1 / 3
Source: Ubuntu
First published (updated )
Severity
7.1
Out-of-bounds Read
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in OpAnyRGBtoYCbCr420Sharp::convertcolorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Attackers can supply a crafted HEIF file producing samples above the declared bit depth so libsharpyuv gamma table lookups read out of bounds, crashing the process or leaking memory into output pixels.

First published (updated )
Severity
6
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H

libheif 1.22.0 before 1.23.6 contains a reachable assertion in ImageItemGrid::decodeandpastetileimage() that allows attackers to crash applications by supplying grid images with oversized alpha planes. Attackers can craft a HEIF file containing a grid of uncompressed (unci) tiles with a 64-bit alpha component to terminate the decoding application or trigger an undefined shift.

First published (updated )
Severity
2.3
AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

libheif 1.22.0 before 1.23.4 contains a heap out-of-bounds read vulnerability in aomencodesequenceframe() and x265encodesequenceframe() that allows attackers to disclose heap memory via crafted images with mismatched luma and chroma bit depths. Attackers can supply a crafted 'unci' file with 10-bit luma and 8-bit chroma so re-encoding reads chroma rows at twice their width, leaking heap bytes into encoded output.

First published (updated )
Severity
7.1
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

libheif 1.19.0 before 1.23.6 contains a CPU exhaustion vulnerability in the uncompressed (unci) codec that re-decompresses and re-reads the entire item for every tile when a cmpC box lacks an icef box. Attackers can supply a crafted few-kilobyte HEIF file with a large tile grid and highly compressed payload to occupy a CPU core for minutes, causing denial of service.

First published (updated )
Severity
7.1
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

libheif 1.19.0 before 1.23.4 contains an allocation of resources without limits vulnerability in Boxiinf::parse() and Box::readchildren() that allows attackers to cause denial of service via crafted HEIF files. Attackers can declare a huge number of 'infe' items to trigger quadratic CPU time and gigabytes of heap usage, or overflow the WebAssembly stack in Emscripten builds.

First published (updated )
Severity
6
AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H

libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes, mixed-depth grid tiles, or iovl overlays to crash applications or disclose memory.

First published (updated )
Severity
7.1
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

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.

First published (updated )
Severity
7.1
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

libheif 1.22.0 before 1.23.6 contains a memory exhaustion vulnerability in the uncompressed (unci) codec that bypasses the maxtotalmemory limit for imagetile compressed units. Attackers can supply a crafted 22 KB HEIF file whose tiles are re-inflated per component, causing multi-gigabyte allocations that exhaust memory in the decoding application.

First published (updated )
Severity
7.1
Null Pointer Dereference
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

libheif 1.20.0 before 1.23.6 contains a null pointer dereference vulnerability in TrackVisual::decodenextimagesample() that allows attackers to crash the process via crafted HEIF image sequences. Attackers can map a later chunk in the 'stsc' box to a non-visual 'stsd' sample entry such as 'mp4a', causing heiftrackdecodenextimage() to call through a null decoder pointer.

First published (updated )
Severity
7.1
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

libheif 1.20.0 before 1.23.4 contains a memory leak vulnerability in Track::getnextsamplerawdata() that allows attackers to exhaust process memory by supplying a crafted HEIF image sequence. Attackers can trigger error paths via 'saiz'/'saio' auxiliary data or TAI timestamps, or oversized 'stsz' samples, leaking sample copies or aborting the process through uncaught std::badalloc.

First published (updated )
Severity
7.1
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

libheif 1.22.0 before 1.23.4 contains a deadlock vulnerability in ImageItem::decodeimage() that allows attackers to hang decoding by supplying a crafted HEIF grid file. Grid tiles referencing each other as alpha auxiliary images cause worker threads to acquire item mutexes in opposite order, blocking the process permanently.

First published (updated )
Severity
7.1
Null Pointer Dereference
AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.20.0 before 1.23.6 contains a null pointer dereference vulnerability in TrackVisual::decodenextimagesample() that allows attackers to crash the process via crafted HEIF image sequences. Attackers can map a later chunk in the 'stsc' box to a non-visual 'stsd' sample entry such as 'mp4a', causing heiftrackdecodenextimage() to call through a null decoder pointer.

First published (updated )
Severity
7.1
AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.19.0 before 1.23.4 contains an allocation of resources without limits vulnerability in Boxiinf::parse() and Box::readchildren() that allows attackers to cause denial of service via crafted HEIF files. Attackers can declare a huge number of 'infe' items to trigger quadratic CPU time and gigabytes of heap usage, or overflow the WebAssembly stack in Emscripten builds.

First published (updated )
Severity
7.1
AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.22.0 before 1.23.4 contains a deadlock vulnerability in ImageItem::decodeimage() that allows attackers to hang decoding by supplying a crafted HEIF grid file. Grid tiles referencing each other as alpha auxiliary images cause worker threads to acquire item mutexes in opposite order, blocking the process permanently.

First published (updated )
Severity
7.1
AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.19.0 before 1.23.6 contains a CPU exhaustion vulnerability in the uncompressed (unci) codec that re-decompresses and re-reads the entire item for every tile when a cmpC box lacks an icef box. Attackers can supply a crafted few-kilobyte HEIF file with a large tile grid and highly compressed payload to occupy a CPU core for minutes, causing denial of service.

First published (updated )
Severity
7.1
AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.20.0 before 1.23.4 contains a memory leak vulnerability in Track::getnextsamplerawdata() that allows attackers to exhaust process memory by supplying a crafted HEIF image sequence. Attackers can trigger error paths via 'saiz'/'saio' auxiliary data or TAI timestamps, or oversized 'stsz' samples, leaking sample copies or aborting the process through uncaught std::badalloc.

First published (updated )
Severity
7.1
AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.22.0 before 1.23.6 contains a memory exhaustion vulnerability in the uncompressed (unci) codec that bypasses the maxtotalmemory limit for imagetile compressed units. Attackers can supply a crafted 22 KB HEIF file whose tiles are re-inflated per component, causing multi-gigabyte allocations that exhaust memory in the decoding application.

First published (updated )
Severity
7.1
AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

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.

First published (updated )
Severity
7.1
Out-of-bounds Read
AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in OpAnyRGBtoYCbCr420Sharp::convertcolorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Attackers can supply a crafted HEIF file producing samples above the declared bit depth so libsharpyuv gamma table lookups read out of bounds, crashing the process or leaking memory into output pixels.

First published (updated )
Severity
2.3
AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

libheif 1.22.0 before 1.23.4 contains a heap out-of-bounds read vulnerability in aomencodesequenceframe() and x265encodesequenceframe() that allows attackers to disclose heap memory via crafted images with mismatched luma and chroma bit depths. Attackers can supply a crafted 'unci' file with 10-bit luma and 8-bit chroma so re-encoding reads chroma rows at twice their width, leaking heap bytes into encoded output.

First published (updated )
Severity
6
AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N

libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes, mixed-depth grid tiles, or iovl overlays to crash applications or disclose memory.

First published (updated )
Severity
6
AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

libheif 1.22.0 before 1.23.6 contains a reachable assertion in ImageItemGrid::decodeandpastetileimage() that allows attackers to crash applications by supplying grid images with oversized alpha planes. Attackers can craft a HEIF file containing a grid of uncompressed (unci) tiles with a 64-bit alpha component to terminate the decoding application or trigger an undefined shift.

First published (updated )
Severity
7.5
EPSS
0.03%
Null Pointer Dereference
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

libheif before 1.19.6 has a NULL pointer dereference in ImageItemGrid::getdecoder in image-items/grid.cc because a grid image can reference a nonexistent image item.

First published (updated )
Severity
6.2
Buffer Overflow
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Buffer Overflow vulnerability in libheif 1.19.7 allows a local attacker to execute arbitrary code via the SAO (Sample Adaptive Offset) processing of libde265.

First published (updated )
Severity
7.5
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Last updated 24 September 2026

1 / 2
Source: Ubuntu
First published (updated )
Severity
3.7
Integer Overflow
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Last updated 24 September 2026

1 / 2
Source: Ubuntu
First published (updated )
Severity
7.5
Infoleak
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

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.

1 / 2
Source: MITRE
First published (updated )

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