MEDIUM · CVSS 3.1 6.5

GHSA-3243-948x-x627: Memory exhaustion when parsing a crafted `iloc` box

Published 2026-11-04 · Updated 2026-11-09 · Also known as RUSTSEC-2026-0458

Summary

The heifer-isobmff crate is vulnerable to memory exhaustion due to improper validation of item and extent counts within the iloc box. Users of the heifer-isobmff or heifer crates should update their dependencies to version 0.3.27 or later.

Who is affected

Affected deployments include any application that parses untrusted HEIF or HEIC files using the heifer-isobmff or heifer crates. Attackers can trigger an out-of-memory error by providing a maliciously crafted, small-sized file that declares an enormous number of extents, leading to process abortion.

Exploitability

The vulnerability carries a CVSS 3.1 base score of 6.5, indicating a medium-severity risk that is exploitable over the network with low attack complexity. It requires no privileges and relies on user interaction to process a malicious file, while CISA KEV data confirms this issue is not currently being actively exploited.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
crates.io heifer-isobmff >= 0.0.0-0, < 0.3.27 0.3.27 cargo update -p heifer-isobmff --precise 0.3.27

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

What specifically triggers the memory exhaustion?

The parser allocates memory based on item and extent counts provided in the iloc box without first verifying that the file is large enough to contain those entries, allowing small files to trigger massive memory allocations.

Is this vulnerability being actively exploited in the wild?

No, there is no evidence of active exploitation according to CISA's Known Exploited Vulnerabilities catalog.

Are all files parsed by heifer-isobmff potentially dangerous?

Only maliciously crafted HEIF/HEIC files specifically designed to exploit this parsing logic are dangerous.

Original advisory description
`heifer-isobmff` read the item and extent counts of the `iloc` box (item locations) from the file and allocated memory for them before checking that the box was large enough to hold that many entries. Extents that declare no field at all take zero bytes each, so a small crafted file could declare an enormous number of them. A 42 KB file made parsing allocate several gigabytes, which can exhaust memory and abort the process. Any application that parses untrusted HEIF/HEIC files with `heifer-isobmff`, directly or through the `heifer` crate, is affected: `HeifFile::parse` and every decoding and metadata function built on it. The flaw was corrected in 0.3.27 (commit [`1a8426e`](https://github.com/HarpeLm/Heifer/commit/1a8426e1b41160fb48d8baf8be858238570a8093)): item and extent counts are bounded by the size of the box, extents that carry no field are rejected, and the total number of extents is capped.

References

Source records: RUSTSEC-2026-0458 (OSV.dev).