Skip to content
Fencer Intel
medium 6.5

GHSA-3243-948x-x627 json

Memory exhaustion when parsing a crafted `iloc` box

published 7d ago modified 2d ago also RUSTSEC-2026-0458

cvss
6.5
version 3.1, OSV
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

`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.

Patch / fix

  • crates.io heifer-isobmff 0.3.27

Is GHSA-3243-948x-x627 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CVSS scores

assigned by version score vector
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
crates.io heifer-isobmff
>=0.0.0-0, <0.3.27
0.3.27

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.