CVE-2024-41311: libheif · Out-of-bounds Read
Affects libheifSource CVE Database V5
Not known to be exploited · CVSS 8.1 High.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 15 Oct 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubstrukturag/libheifpkg:github/strukturag/libheifOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Update Libheif to the latest patched version as soon as it becomes available from the maintainers to address the vulnerability directly.
- Implement strict input validation and sanitization for all HEIF images processed, rejecting files with suspicious or malformed overlay data.
- Employ sandboxing or containerization techniques to isolate image processing components, limiting the impact of potential exploitation.
- Restrict or monitor user-uploaded or externally sourced HEIF files, especially in web applications and email clients, to prevent malicious content from reaching vulnerable decoders.
- Use application whitelisting and endpoint protection solutions to detect and block anomalous behavior resulting from exploitation attempts.
- Educate users about the risks of opening untrusted image files and encourage cautious handling of attachments and downloads.
- Monitor security advisories and threat intelligence feeds for updates on exploit availability and adjust defenses accordingly.
Description
In Libheif 1.17.6, insufficient checks in ImageOverlay::parse() decoding a heif file containing an overlay image with forged offsets can lead to an out-of-bounds read and write.
References
- github.com/strukturag/libheif/issues/1226 (opens in a new tab)
- github.com/strukturag/libheif/pull/1227 (opens in a new tab)
- github.com/strukturag/libheif/commit/a3ed1b1eb178c5d651d6ac619c8da3d71ac2be36 (opens in a new tab)
- gist.github.com/flyyee/79f1b224069842ee320115cafa5c35c0 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/10/msg00025.html (opens in a new tab)