CVE-2026-27622: OpenEXR Heap OOB Write Vulnerability Due to Integer Overflow

openexr Updated 04 Mar 2026

Summary

02/03/2026
Yes i
High
8.4

CVE-2026-27622: OpenEXR's CompositeDeepScanLine integer-overflow leads to heap OOB write. Affects openexr across 3 version ranges.

>= 2.3.0, < 3.2.6 >= 3.3.0, < 3.3.8 >= 3.4.0, < 3.4.6

Fixed in 3.2.6, 3.3.8 or 3.4.6, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenEXR is an open-source high dynamic range image file format developed by Industrial Light & Magic. It is widely used in visual effects and animation for its ability to store a vast amount of image data. The package supports various compression methods and is designed for efficient storage and manipulation of deep image data. However, it is vulnerable to a critical issue that can lead to heap out-of-bounds writes, potentially allowing attackers to exploit the system.

Vulnerability Detail

The vulnerability arises from an integer overflow in the CompositeDeepScanLine::readPixels function, which is part of the OpenEXR library. When processing multipart deep EXR files with large sample counts, the accumulation of sample counts can exceed the maximum value of a 32-bit unsigned integer, causing a wraparound. This results in an undersized memory allocation for the sample buffer, leading to heap out-of-bounds writes during decoding operations. The consequences of this vulnerability include denial of service (DoS), memory corruption, and potential remote code execution (RCE). The issue has been present since version 2.3.0 and affects multiple versions of the OpenEXR package.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.3.0, < 3.2.6 3.2.6
    pip install --upgrade "openexr==3.2.6"
  • >= 3.3.0, < 3.3.8 3.3.8
    pip install --upgrade "openexr==3.3.8"
  • >= 3.4.0, < 3.4.6 3.4.6
    pip install --upgrade "openexr==3.4.6"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, avoid processing multipart deep EXR files with excessively large sample counts until the package is updated. Additionally, consider using file validation to check for potential vulnerabilities before processing.

Conclusion

CVE-2026-27622 is a significant vulnerability in the OpenEXR library that can lead to severe consequences if not addressed. Users are strongly advised to update to the latest patched versions to mitigate the risks associated with this vulnerability.

See every vulnerability recorded for openexr →

Share this vulnerability

FAQ

CVE-2026-27622 is a vulnerability in the OpenEXR library that allows for heap out-of-bounds writes due to an integer overflow in the sample count accumulation.

An attacker can exploit this vulnerability by providing a specially crafted multipart deep EXR file with large sample counts, leading to memory corruption and potential remote code execution.

The vulnerability affects OpenEXR versions from 2.3.0 up to but not including 3.2.6, 3.3.8, and 3.4.6, which contain the necessary patches.

The impacts include denial of service, memory corruption, and the potential for remote code execution, making it critical to address.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring installation.

Related vulnerabilities

Recent vulnerabilities recorded for openexr.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.3.0, < 3.2.6 3.2.6
    pip install --upgrade "openexr==3.2.6"
  • >= 3.3.0, < 3.3.8 3.3.8
    pip install --upgrade "openexr==3.3.8"
  • >= 3.4.0, < 3.4.6 3.4.6
    pip install --upgrade "openexr==3.4.6"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback