PyPI: openexr

CVE-2026-34588

Safety vulnerability ID: SFTY-20260408-59849

Safety legacy ID: pyup.io-92197

Affected versions of the OpenEXR package are vulnerable to Out-of-bounds Read and Write due to a signed 32-bit integer overflow in the PIZ decoder’s wavelet buffer pointer advancement within internal_exr_undo_piz() in internal_piz.c. The expression wavbuf += nx * ny * wcount is computed using signed int arithmetic, and a crafted EXR file can cause this product to overflow and wrap, positioning the working pointer outside the allocated scratch buffer so that subsequent wavelet decode operations in wdec14_4() read from and write to out-of-bounds heap memory. An attacker can supply a specially crafted EXR file to trigger heap memory corruption, potentially leading to process crash or further exploitation outcomes depending on allocator layout.

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

Overview

OpenEXR has a signed 32-bit Overflow in PIZ Decoder Leads to OOB Read/Write

Advisory

Affected versions of the OpenEXR package are vulnerable to Out-of-bounds Read and Write due to a signed 32-bit integer overflow in the PIZ decoder’s wavelet buffer pointer advancement within internal_exr_undo_piz() in internal_piz.c. The expression wavbuf += nx * ny * wcount is computed using signed int arithmetic, and a crafted EXR file can cause this product to overflow and wrap, positioning the working pointer outside the allocated scratch buffer so that subsequent wavelet decode operations in wdec14_4() read from and write to out-of-bounds heap memory. An attacker can supply a specially crafted EXR file to trigger heap memory corruption, potentially leading to process crash or further exploitation outcomes depending on allocator layout.

Affected Package

Affecting openexr package, versions
>=3.1.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