PyPI: openexr

CVE-2026-34589

Safety vulnerability ID: SFTY-20260408-96870

Safety legacy ID: pyup.io-92198

Affected versions of the OpenEXR package are vulnerable to Out-of-bounds Write due to a signed 32-bit integer overflow in the DWA lossy decoder’s per-component block pointer construction within internal_dwa_decoder.h. The expression numBlocksX * 64, computed as signed int, overflows for sufficiently large image widths, causing rowBlock pointers to wrap and point outside the allocated rowBlockHandle buffer, so that LossyDctDecoder_execute() subsequently writes to out-of-bounds heap memory. An attacker can supply a crafted DWAA-compressed EXR file to trigger heap memory corruption during decompression, potentially leading to process crash or further exploitation.

Created at: Apr 8, 2026Updated at: Apr 8, 2026

Overview

OpenEXR: DWA Lossy Decoder Heap Out-of-Bounds Write

Advisory

Affected versions of the OpenEXR package are vulnerable to Out-of-bounds Write due to a signed 32-bit integer overflow in the DWA lossy decoder’s per-component block pointer construction within internal_dwa_decoder.h. The expression numBlocksX * 64, computed as signed int, overflows for sufficiently large image widths, causing rowBlock pointers to wrap and point outside the allocated rowBlockHandle buffer, so that LossyDctDecoder_execute() subsequently writes to out-of-bounds heap memory. An attacker can supply a crafted DWAA-compressed EXR file to trigger heap memory corruption during decompression, potentially leading to process crash or further exploitation.

Affected Package

Affecting openexr package, versions
>=3.2.0,<3.2.7
>=3.3.0,<3.3.9
>=3.4.0,<3.4.9

Also affects

---

How to Fix

Upgrade
openexr
to
3.2.7
3.3.9
3.4.9
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more