XYZ-2026-00162
OpenEXR: integer overflow in deep-image compositing reads and writes outside the heap buffer
Flagged in the source code
CyberXYZ spotted this security fix in the package's source code on 13 Nov 2026. The maintainers confirmed it in public as GHSA-hjw7-cqx6-rwq5.
- CyberXYZ flagged the fix
- Advisory published
What was wrong
CompositeDeepScanLine computed a per-scanline pixel index in a 32-bit signed integer. For deep images whose combined data window is wider than about 1.07 billion pixels, the multiplication overflowed to a negative value that was then used to index internal buffers. The buffers themselves were sized correctly with 64-bit arithmetic.
Impacthigh
An out-of-bounds heap read and write, giving heap corruption and a reliable crash. The maintainers call code execution plausible but not demonstrated. Reaching the overflow needs a host with roughly 8 GB of memory or more, which is normal on rendering systems.
Who is affected
Applications that composite deep EXR files from untrusted sources through CompositeDeepScanLine::addSource() and readPixels(). The advisory is written for the C++ library; the PyPI package openexr ships the same library code. We have not checked whether the Python bindings reach this code path.
What to do
Upgrade to OpenEXR 3.5.5, or to 3.4.19 or 3.3.17 on the older lines. Until then, do not composite deep EXR files from sources you do not trust.
Fixed releases: 3.3.17, 3.4.19, 3.5.5. Use the one on your release line.
Reported to the maintainers by @manus-pi and @manus-use and fixed by the OpenEXR maintainers. Advisory: GHSA-hjw7-cqx6-rwq5.
{
"id": "XYZ-2026-00162",
"summary": "OpenEXR: integer overflow in deep-image compositing reads and writes outside the heap buffer",
"aliases": [
"GHSA-hjw7-cqx6-rwq5"
],
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "openexr"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.17"
},
{
"introduced": "3.4.0"
},
{
"fixed": "3.4.19"
},
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.5"
}
]
}
]
}
],
"references": [
{
"type": "FIX",
"url": "https://github.com/academysoftwarefoundation/openexr/commit/878f6a4c87218c3856d1b928a9f0b84940ea5e07"
}
],
"credits": [
{
"name": "CyberXYZ Security Threat Intel Team",
"contact": [
"https://cyberxyz.io"
],
"type": "ANALYST"
}
],
"database_specific": {
"cwe_ids": [
"CWE-190"
]
}
}
An excerpt of this record in the OSV format, for tools that read advisories. The full record as JSON.
The bug was found and fixed by the package's maintainers. CyberXYZ flagged the fix in the source and recorded the release that carries it. All CyberXYZ Advisories · The openexr report