# JLSEC-2026-570: libheif is a HEIF and AVIF file format decoder and encoder.

- Severity: Medium 6.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-06-05T15:18:28.412Z
- Modified: 2026-07-25T18:24:39.025Z
- Related: CVE-2026-32738, EUVD-2026-30972

## Description

libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 792-byte HEIF sequence file with `samples_per_chunk`=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (`m_last_sample` = 0 + 0 - 1 = `UINT32_MAX`), mapping all samples to an empty chunk and resulting in a denial of service. When any sample is accessed, the library reads from index 0 of an empty std::vector, causing a guaranteed SEGV (null-page read). The file parses successfully without producing an error; the crash occurs on the first frame access. This issue has been fixed in version 1.22.0.

(As written by Julia Security Advisories.)

## Affected

- libheif_jll (Julia): before 1.22.2000+0

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-7f2h-cmpf-v9ww> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-570](https://osv.dev/vulnerability/JLSEC-2026-570), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-570 · Whole record: https://cve.day/JLSEC-2026-570.json · Rebuilt by cve.day 2026-11-25T22:56:26.163Z
