Ubuntu patches libheif flaws (CVE-2026-62291, CVE-2026-62377) as oss-security flags further libheif/libde265 advisories and an unreleased size-validation fix
Ubuntu USN-8774-1 fixes two libheif vulnerabilities: CVE-2026-62291 (denial of service or arbitrary code execution via malformed images) and CVE-2026-62377 (denial of service via crafted image sequences). A separate oss-security thread highlights multiple…
Ubuntu Security Notice USN-8774-1 (2026-09-16) updates libheif, the open-source HEIF/HEIC image library, across supported Ubuntu releases to fix two vulnerabilities. CVE-2026-62291, discovered by Ali Firas, involves incorrect handling of certain images and may allow denial of service or arbitrary code execution. CVE-2026-62377, discovered by Dmitrijs Trizna, involves incorrect handling of image sequences and may allow denial of service. In an oss-security discussion (2026-09-18), Alan Coopersmith noted that several new security advisories were recently published for libheif and libde265, the strukturag libraries used to decode HEIF/HEVC images, and urged users to check installed versions against vendor advisories; he described the heif-heist.com site as promotional rather than informational. A follow-up from Hanno Böck (2026-09-19) flagged commit 6ce2bba in strukturag/libheif, tracked as GHSA-v8qw-hwjv-44hw, which rejects in-band coded image sizes exceeding the security limit for all codecs: a crafted HEIF image can declare a small size in its container 'ispe' property while the actual coded image is larger, bypassing prior validation. This fix was not included in the libheif 1.23.4 release. The reports do not map the GitHub advisories to the CVEs fixed by Ubuntu.
- USN-8774-1 (published 2026-09-16) fixes CVE-2026-62291 and CVE-2026-62377 in libheif via updated packages across supported Ubuntu releases.
- CVE-2026-62291, discovered by Ali Firas: incorrect handling of certain images can cause denial of service or arbitrary code execution.
- CVE-2026-62377, discovered by Dmitrijs Trizna: incorrect handling of image sequences can cause denial of service.
- An oss-security post by Alan Coopersmith (2026-09-18) states that several new security advisories were published recently for libheif and libde265, widely used strukturag libraries for HEIF/HEVC image decoding.
- Users are urged to check installed versions of libheif and libde265 against vendor advisories; heif-heist.com is described in the thread as promotional rather than informational.
- GHSA-v8qw-hwjv-44hw (commit 6ce2bba): crafted HEIF images can understate coded size via the 'ispe' property, bypassing prior validation; the fix rejects in-band coded image sizes exceeding the security limit across all codecs in libheif.
- The GHSA-v8qw-hwjv-44hw fix was not included in the libheif 1.23.4 release.
- The reports do not specify which upstream GitHub advisories correspond to the Ubuntu CVEs.
Coverage timelineoldest first · each row is one article
- · 3d agoUSN-8774-1: libheif vulnerabilities
Ubuntu Security Notices· 28
Ubuntu patches libheif image-parsing flaws allowing denial of service or arbitrary code execution (CVE-2026-62291, CVE-2026-62377).
- · 1d agoVulnerabilities in libheif and libde265
oss-security· 52
Multiple new security advisories affect the libheif and libde265 codecs; users should verify versions against the published fixes.
- · 10h agoRe: Vulnerabilities in libheif and libde265
oss-security· 22
Hanno Böck flags a security-relevant libheif fix (GHSA-v8qw-hwjv-44hw) rejecting oversized in-band coded image sizes, absent from release 1.23.4.
Vulnerabilities in this storyAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2026-62291 | Heap out-of-bounds write/read in libheif image sequence decode and re-encode (≤ 1.23.0) libheif, a widely used open-source HEIF/AVIF decoder and encoder, fails to validate that an auxiliary alpha plane's dimensions match the main frame when decoding image sequences: Track_Visual::decode_next_image_sample() passes an inconsistent image downstream, and during re-encoding unc_encoder_component_interleave::encode_tile() allocates its buffer using the primary dimensions while copying each component using its actual plane dimensions, causing an attacker-controlled heap out-of-bounds write (and, with the inverse mismatch, an out-of-bounds read). The flaw is triggered by decoding a crafted image sequence (a 2x2 primary plane with a 256x256 alpha plane is a demonstrated trigger) in a normal decode-and-re-encode workflow, so an attacker gains heap corruption that can crash the application (DoS) and potentially enable memory-corruption exploitation with limited confidentiality, integrity, and availability impact per the CVSS scoring. Any application or system that decodes untrusted HEIF/AVIF image sequences with libheif 1.23.0 or earlier is affected, including Linux distributions that ship the library, as confirmed by Ubuntu security notice USN-8774-1. No public proof-of-concept is known, the flaw is not in CISA KEV, and EPSS estimates only a 0.1% probability of exploitation within 30 days, so no exploitation is currently known. Do: Upgrade libheif to version 1.23.1, or apply the distro update provided in Ubuntu USN-8774-1 (and equivalent updates in other distributions that package libheif). Until patched, avoid processing untrusted HEIF/AVIF image sequences in tools that decode and re-encode/transcode images with libheif (viewers, thumbnailers, transcoders, ImageMagick/vips-style pipelines that link it). Inventory systems and applications for linked libheif builds to confirm they receive the fixed version. | 5.3 | <1% |
| massplausibly millions of installed systems carry the affected library (distro-packaged), though only sequence decode/re-encode workflows are reachable | ||
| CVE-2026-62377 | Reachable assertion / empty-map crash (DoS) in libheif HEIF sequence handling libheif, a widely used HEIF/AVIF decoder and encoder library, mishandles crafted HEIF sequences that are accepted by heif_context_read_from_memory() but contain no registered sequence tracks. A subsequent call to heif_context_get_track(ctx, 0) reaches HeifContext::get_track() in context.cc, where assert(has_sequence()) executes before normal error handling, so assert-enabled builds abort instead of letting the wrapper in heif_sequences.cc return null; in release builds the track_id-zero path dereferences m_tracks.begin()->second on an empty map, which is undefined behavior and typically crashes the process. An attacker who can supply a malicious HEIF/AVIF file to an application using these documented public APIs can therefore cause a denial of service (CVSS C:N/I:N/A:L, with user interaction required to open the file). Any application, service, or distribution package linking libheif 1.23.0 or earlier and parsing untrusted media through these APIs is affected; Ubuntu has issued USN-8774-1 for its libheif packages. There is no known public PoC, the issue is not in CISA KEV, and EPSS estimates only a ~0.3% chance of exploitation in the next 30 days. Do: Upgrade libheif to version 1.23.1 or later, and on Ubuntu apply the package updates from USN-8774-1; rebuild statically linked applications against the patched library. Applications using the sequence APIs should additionally validate that a context contains tracks before calling heif_context_get_track(), and treat untrusted HEIF/AVIF inputs (e.g., uploads, thumbnails) as suspect until patched. | 4.3 | <1% |
| massmillions of Linux installations ship the library (packaged in Ubuntu per USN-8774-1 and common in image/thumbnailing stacks), though only apps parsing… |