OpenEXR
GHSA-hphq-wq62-4mj3
HTJ2K planar decode row-endpoint wrap causing denial of service
Moderate, 5.5 · Public source snapshot: November 12, 2026
Original portfolio report · Upstream commit · Source reference · Public advisory
Shared credits and the scope of my investigation are documented below.
GHSA-hphq-wq62-4mj3 · OpenEXR · Moderate
Public security research by Charles Vosburgh (
the-vibe-dev).
| Field | Value |
|---|---|
| Project | OpenEXR |
| Ecosystem | C/C++ |
| Severity | Moderate |
| CVSS | 5.5 — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| Affected | 3.4.0 through 3.4.13 |
| Fixed | 3.4.14 |
| Weakness | CWE-190 / CWE-835 — integer conversion leading to an excessive loop |
| Public PoC | Yes — attached to the GHSA |
| Credit | Charles Vosburgh (the-vibe-dev) — researcher and reporter |
A compact HTJ2K-compressed EXR image with a negative Y data-window origin and a vertically subsampled channel can drive OpenEXR's planar decode path into an extremely large row loop. The bug is caused by mixed signed and unsigned arithmetic when computing the loop endpoint.
The intended endpoint for the public candidate is negative. In affected releases, the unsigned image height causes that negative endpoint to wrap into a very large positive value. A decoder thread can then continue requesting rows long after the small image has been exhausted, consuming CPU until the operation is externally terminated.
This is an availability issue. The published proof does not demonstrate memory corruption, information disclosure, arbitrary code execution, or persistence.
Security invariant: Image-coordinate arithmetic must preserve signed semantics until bounds are validated; a negative image origin must never wrap into an enormous positive loop endpoint.
OpenEXR 3.4 introduced HTJ2K support through OpenJPH. The affected logic is in the planar reconstruction path in:
src/lib/OpenEXRCore/internal_ht.cpp
The triggering geometry requires:
- HTJ2K-compressed scanline data;
- a negative Y data-window origin; and
- vertical channel subsampling, such as
ySampling=2, which selects the planar path.
In OpenEXR 3.4.13, the decoder obtains image height as an unsigned 32-bit value and later combines it with the signed chunk origin:
ojph::ui32 image_height =
siz.get_image_extent ().y - siz.get_image_offset ().y;
for (int64_t y = decode->chunk.start_y;
y < image_height + decode->chunk.start_y;
y++)
For the public candidate, the relevant values are effectively:
image_height = 32
start_y = -64
The intended end row is:
-64 + 32 = -32
But because image_height is unsigned, the addition is evaluated after unsigned conversion. Instead of -32, the comparison receives a value near UINT32_MAX:
4294967264
The loop begins at -64 and therefore has billions of iterations available before reaching the wrapped endpoint.
Public candidate
The published reproducer uses a 448-byte scanline EXR with:
HTJ2K32_COMPRESSION
data/display window: (0,-64)-(255,-33)
channel: HALF Y, sampling 1x2
The public candidate SHA-256 is:
9140ba9fc3c1d708f006eb060074aa3d4b40463dd9a337d799d4c237f5a940fe
Neighboring geometry controls are important because they separate the integer-boundary condition from a generic HTJ2K decoder hang.
The loop mixed a signed image-space coordinate with an unsigned dimension. The type conversion changed the meaning of a legitimate negative endpoint before the bound comparison.
This is a classic case where “the values are individually in range” is not enough. Coordinate systems with negative origins require signed intermediate arithmetic even when width/height values are naturally non-negative.
The 3.4 release-branch fix is commit:
f09250fa2345c8e81b51ac199d7777e107ec6912
The equivalent main-branch commit is:
3b8761145ec27dd13cedfd8dbae8c58ff0d5f1bf
The fixed code explicitly converts both bounds to signed 64-bit arithmetic before entering the loop:
const int64_t start_y = static_cast<int64_t> (decode->chunk.start_y);
const int64_t end_y = start_y + static_cast<int64_t> (image_height);
for (int64_t y = start_y; y < end_y; y++)
That preserves -32 as the intended endpoint for the public candidate.
flowchart TD
A[Application decodes attacker-controlled EXR]
B[File uses HTJ2K scanline compression]
C[Negative Y origin plus vertical subsampling selects planar path]
D[Unsigned image height is added to signed negative start_y]
E[Endpoint wraps to a very large positive value]
F[Decoder performs pathological row loop]
G[CPU exhaustion / decode denial of service]
A --> B --> C --> D --> E --> F --> G
OpenEXR is a library rather than a service, so whether this is remotely triggerable depends on the integrating application: image upload systems, asset pipelines, render infrastructure, desktop viewers, and other EXR consumers can expose different delivery paths.
The public PoC is attached to GHSA-hphq-wq62-4mj3 and is not duplicated as a separate artifact in this repository.
The reproduction package contains the candidate, controls, direct C++ and Python-binding readers, and bounded execution scripts. The expected behavior is a timeout or prolonged CPU loop on affected releases and normal termination on the fixed release.
The public proof is intentionally availability-focused. A small file is enough to create a disproportionately large loop, so there is no need to provide a large decompression bomb or memory-pressure payload.
The demonstrated consequence is a decode denial of service caused by pathological CPU consumption. In applications that synchronously process untrusted EXR files, one crafted image can occupy a worker or thread until a timeout, watchdog, user termination, or process kill intervenes.
The published advisory rates the issue Moderate, CVSS 5.5. The CVSS vector reflects a local/user-interaction delivery model; server-side reachability depends on a downstream application accepting untrusted EXR input.
No evidence supports escalating the finding into memory corruption or code execution.
Every final OpenEXR tag from:
3.4.0
through:
3.4.13
was inspected and contains the vulnerable mixed signed/unsigned endpoint expression.
Version 3.4.14 is the first inspected fixed release. Version 3.4.15 was also inspected and retains the signed-endpoint fix.
The public ancestry traces the HTJ2K implementation to merge commit:
50ba96b1dbe353a98a626c7fd0ff1e50cc8c188f
which introduced internal_ht.cpp into the public release lineage.
Upgrade to OpenEXR 3.4.14 or later.
For image and codec code, coordinate arithmetic should use a signed type large enough to contain the full window range until bounds have been validated. Avoid relying on implicit integer promotions in expressions that combine dimensions and signed origins.
Regression coverage should include:
- negative Y origins;
- positive and zero origins;
- vertical sampling values greater than one;
- neighboring geometries that should remain valid;
- explicit assertions on computed signed start/end rows;
- a bounded decode-time assertion for the original candidate.
| Date | Event |
|---|---|
| 2026-07-16 | Advisory created upstream. |
| 2026-08-07 | OpenEXR 3.4.14 published. |
| 2026-08-07 | GHSA-hphq-wq62-4mj3 published with public PoC. |
| 2026-08-26 | Final affected tag range and fixed releases reviewed. |
GHSA-hphq-wq62-4mj3 is a signedness bug in OpenEXR's HTJ2K planar row loop. A negative coordinate that should produce a negative endpoint instead participates in unsigned arithmetic and becomes a value near UINT32_MAX, turning a tiny image into a pathological CPU loop.
The vulnerability is present in every final 3.4.0–3.4.13 release inspected and fixed in 3.4.14 by calculating the start and endpoint explicitly in signed 64-bit arithmetic.
Broader lesson: Image formats frequently allow negative origins even when dimensions are unsigned. Coordinate and dimension arithmetic must not be allowed to silently cross signedness domains before validation.
- https://github.com/AcademySoftwareFoundation/openexr/security/advisories/GHSA-hphq-wq62-4mj3
- https://github.com/AcademySoftwareFoundation/openexr/commit/f09250fa2345c8e81b51ac199d7777e107ec6912
- https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v3.4.14
Charles Vosburgh (the-vibe-dev) — researcher and reporter.
Research was AI-assisted for source mapping, hypothesis generation, release comparison, and evidence organization. I performed the final validation, disclosure coordination, severity calibration, and publication review.
This write-up documents a publicly disclosed availability vulnerability for defensive research, remediation, regression testing, and authorized assessment. Keep reproductions bounded and run them only on systems you own or are explicitly authorized to test.