Vulnerability RUSTSEC-2026-0458

Medium Risk
MEDIUM RISK
CVSS Score: 6.5
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
5 days ago
November 04, 2026 at 12:00 PM UTC
Memory exhaustion when parsing a crafted `iloc` box
>=0.0.0-0 <0.3.27
>=0.0.0-0 <0.3.27

Summary

Memory exhaustion when parsing a crafted `iloc` box

Details

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): 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.

Impacted packages

Timeline

Published
5 days ago
November 04, 2026 at 12:00 PM UTC
Last Modified
14 hours ago
November 09, 2026 at 10:00 AM UTC