Skip to content

CVE-2025-64183 OpenEXR has use after free in PyObject_StealAttrString

MediumCVSS 5.5 EPSS 0.32%
Published
Updated
Exploit status
No public exploit known

Description

OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In versions 3.2.0 through 3.2.4, 3.3.0 through 3.3.5, and 3.4.0 through 3.4.2, there is a use-after-free in PyObject_StealAttrString of pyOpenEXR_old.cpp. The legacy adapter defines PyObject_StealAttrString that calls PyObject_GetAttrString to obtain a new reference, immediately decrefs it, and returns the pointer. Callers then pass this dangling pointer to APIs like PyLong_AsLong/PyFloat_AsDouble, resulting in a use-after-free. This is invoked in multiple places (e.g., reading PixelType.v, Box2i, V2f, etc.) Versions 3.2.5, 3.3.6, and 3.4.3 fix the issue.

Affected products

ProductAffected versionsFixed in
pypi openexr(PyPI) >= 3.2.0, < 3.2.5 3.2.5
pypi openexr(PyPI) = 3.2.3 No fix listed
pypi openexr(PyPI) = 3.2.4 No fix listed
pypi openexr(PyPI) >= 3.3.0, < 3.3.6 3.3.6
pypi openexr(PyPI) = 3.3.0 No fix listed
pypi openexr(PyPI) = 3.3.1 No fix listed
pypi openexr(PyPI) = 3.3.2 No fix listed
pypi openexr(PyPI) = 3.3.3 No fix listed
pypi openexr(PyPI) = 3.3.4 No fix listed
pypi openexr(PyPI) = 3.3.5 No fix listed
pypi openexr(PyPI) >= 3.4.0, < 3.4.3 3.4.3
pypi openexr(PyPI) = 3.4.0 No fix listed
pypi openexr(PyPI) = 3.4.1 No fix listed
pypi openexr(PyPI) = 3.4.2 No fix listed
AcademySoftwareFoundation openexr = >= 3.2.0, < 3.2.5 No fix listed
AcademySoftwareFoundation openexr = >= 3.3.0, < 3.3.6 No fix listed
AcademySoftwareFoundation openexr = >= 3.4.0, < 3.4.3 No fix listed
openexr >= 3.2.0, < 3.2.5 3.2.5
openexr >= 3.3.0, < 3.3.6 3.3.6
openexr >= 3.4.0, < 3.4.3 3.4.3

References