CVE-2024-40630
Linux Debian vulnerability analysis and mitigation

Overview

OpenImageIO, a toolset for reading, writing, and manipulating image files, contains a bug in its heif input functionality, specifically in HeifInput::seek_subimage(). The vulnerability was discovered on July 15, 2024, and affects versions prior to 2.5.13.1. The issue has been assigned CVE-2024-40630 and has been addressed in commit 0a2dcb4c (GitHub Commit).

Technical details

The vulnerability stems from incorrect dimension handling in the HEIF input functionality. The code uses ImageHandle::get_width/height() to obtain image dimensions, which returns untransformed image dimensions from the ispe (Image spatial Extents) metadata. However, these dimensions may not match the actual decoded image's plane sizes, which should be obtained using Image::get_width/height(channel). This mismatch can lead to a heap-based buffer over-read when processing HEIF images. The vulnerability has been assigned a CVSS v3.1 score of 4.3 (MEDIUM) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N (NVD).

Impact

In the worst case, this vulnerability can lead to information disclosure, particularly affecting programs that directly use the ImageInput APIs. An attacker could craft a malicious HEIF file with forged ispe values to trigger arbitrary out-of-bounds reads, potentially exposing sensitive information from memory (GitHub Advisory).

Exploitability

The vulnerability can be triggered by processing specially crafted HEIF files where the ispe values are forged. For example, modifying a regular HEIC file's ispe dimensions from (1440, 960) to (14400, 9600) can trigger an ASan fault. The exploit can be demonstrated using commands like oiiotool poc.heic -o out.jpeg or any operation that reads the entire image (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in OpenImageIO version 2.5.13.1. The fix involves modifying the ImageSpec creation to use Image::get_width/height() methods instead of ImageHandle::get_width/height(). Users are advised to upgrade to version 2.5.13.1 or later. There are no known workarounds for this issue (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

openimageio

Affected

bullseye

openimageio

Affected

sid

openimageio: 2.5.14.0+dfsg-1

Fixed

trixie

openimageio: 2.5.14.0+dfsg-1

Fixed

SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-72710CRITICAL9.3
  • Linux Debian logoLinux Debian
  • spip
NoYesSep 11, 2026
CVE-2026-54241HIGH7.4
  • Linux Debian logoLinux Debian
  • libde265
NoYesSep 11, 2026
CVE-2026-54240HIGH7.4
  • Linux Debian logoLinux Debian
  • libde265-debugsource
NoYesSep 11, 2026
CVE-2026-78807HIGH7.1
  • Linux Debian logoLinux Debian
  • wpa
NoNoSep 11, 2026
CVE-2026-89329MEDIUM6.2
  • Linux Debian logoLinux Debian
  • device-mapper-multipath-libs
NoNoSep 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management