REDHAT-BUG-2490597: High severity OpenEXR OpenEXR vulnerability
OpenEXR is the reference implementation and specification for the EXR image format, widely used in the motion picture industry. In versions 3.4.0 through 3.4.11, the HTJ2K (High-Throughput JPEG 2000) decoder, htundoimpl() in OpenEXRCore is vulnerable to a heap-buffer-overflow READ. The htundoimp function copies decoded pixels out of a per-line OpenJPH buffer using the EXR channel's declared width as the iteration count. The codestream embedded in the EXR chunk can declare different (smaller) tile/line dimensions than the EXR header advertises, but htundoimpl() does not validate this — it pulls width 32-bit samples from curline->i32[] without checking the OpenJPH line buffer's actual length. A crafted EXR file produces a 4-byte heap-buffer-overflow READ immediately after a buffer allocated by ojph::local::codestream::finalizealloc(). The bug is reachable through the standard scanline-decode entry point used by every consumer of exrdecodingrun/Imf::checkOpenEXRFile, including thumbnailers, asset pipelines, and the exrcheck utility — i.e. any application that opens untrusted EXR files. The result is a deterministic crash (DoS) and potential adjacent-heap leak. This issue has been fixed in version 3.4.12.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
OpenEXRto a version that resolves this vulnerability.Fixed in 3.4.12
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2490597?
The severity of REDHAT-BUG-2490597 is high, rated at 7.
What vulnerability is present in REDHAT-BUG-2490597?
REDHAT-BUG-2490597 describes a heap-buffer-overflow READ vulnerability in the HTJ2K decoder of OpenEXR.
Which versions are affected by REDHAT-BUG-2490597?
Versions 3.4.0 through 3.4.11 of OpenEXR are affected by REDHAT-BUG-2490597.
How do I fix REDHAT-BUG-2490597?
To resolve REDHAT-BUG-2490597, upgrade to a fixed version of OpenEXR that addresses this vulnerability.
What impact does REDHAT-BUG-2490597 have on applications?
The impact of REDHAT-BUG-2490597 could potentially allow an attacker to exploit the heap-buffer-overflow vulnerability, leading to possible application crashes or arbitrary code execution.