PyPI: openexr
CVE-2025-64181
Safety vulnerability ID: SFTY-20260406-51683
Safety legacy ID: pyup.io-92076
Affected versions of the OpenEXR package are vulnerable to Use of Uninitialised Memory due to insufficient post-decode validation of scratch buffers allocated during tile and scanline processing. The generic_unpack function in the decoding pipeline reads from a heap-allocated pixel buffer that was never fully populated by the preceding decode step, causing conditional branches to depend on uninitialized values. An attacker who supplies a crafted EXR file can trigger undefined behavior, potentially resulting in a crash and Denial of Service.
Overview
OpenEXR Makes Use of Uninitialized Memory
Advisory
Affected versions of the OpenEXR package are vulnerable to Use of Uninitialised Memory due to insufficient post-decode validation of scratch buffers allocated during tile and scanline processing. The generic_unpack function in the decoding pipeline reads from a heap-allocated pixel buffer that was never fully populated by the preceding decode step, causing conditional branches to depend on uninitialized values. An attacker who supplies a crafted EXR file can trigger undefined behavior, potentially resulting in a crash and Denial of Service.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260406-51683/CVE-2025-64181
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-64181
- https://data.safetycli.com/changelogs/openexr/
- https://github.com/advisories/GHSA-3h9h-qfvw-98hq
- https://pypi.org/project/openexr
- https://github.com/AcademySoftwareFoundation/openexr/security/advisories/GHSA-3h9h-qfvw-98hq
- https://nvd.nist.gov/vuln/detail/CVE-2025-64181
- https://github.com/user-attachments/files/23024726/archive0.zip
- https://github.com/user-attachments/files/23024736/archive1.zip
- https://github.com/user-attachments/files/23024740/archive2.zip
- https://github.com/user-attachments/files/23024744/archive3.zip
- https://github.com/user-attachments/files/23024746/archive4.zip
- https://github.com/advisories/GHSA-3h9h-qfvw-98hq
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
