PyPI: openexr

CVE-2025-48074

Safety vulnerability ID: SFTY-20250801-85386

Safety legacy ID: pyup.io-78657

Affected versions of the OpenEXR package are vulnerable to Denial of Service (DoS) due to excessive memory allocations. The `readScanline()` function in `ImfCheckFile.cpp` and the `EnvmapImage::resize()` function fail to validate the dataWindow coordinates from the EXR file header, leading to unbounded loops and huge memory allocations. The vulnerability was fixed by adding validation checks to prevent large allocations when dataWindow dimensions exceed reasonable limits.

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

OpenEXR Out-Of-Memory via Unbounded File Header Values

Advisory

Affected versions of the OpenEXR package are vulnerable to Denial of Service (DoS) due to excessive memory allocations. The `readScanline()` function in `ImfCheckFile.cpp` and the `EnvmapImage::resize()` function fail to validate the dataWindow coordinates from the EXR file header, leading to unbounded loops and huge memory allocations. The vulnerability was fixed by adding validation checks to prevent large allocations when dataWindow dimensions exceed reasonable limits.

Affected Package

Affecting openexr package, versions
==3.3.2

Also affects

---

How to Fix

Upgrade
openexr
to
3.3.3
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