OpenEXR <8.0 RLE Overflow via Unchecked Length in DWAA/DWAB Decoding
CVE-2025-59731 Published on October 6, 2025

Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress
When decoding an OpenEXR file that uses DWAA or DWAB compression, the specified raw length of run-length-encoded data is not checked when using it to calculate the output data. We read rle_raw_size from the input file at [0], we decompress and decode into the buffer td->rle_raw_data of size rle_raw_size at [1], and then at [2] we will access entries in this buffer up to (td->xsize - 1) * (td->ysize - 1) + rle_raw_size / 2, which may exceed rle_raw_size. We recommend upgrading to version 8.0 or beyond.

NVD

Weakness Type

What is a Memory Corruption Vulnerability?

The software writes data past the end, or before the beginning, of the intended buffer. Typically, this can result in corruption of data, a crash, or code execution. The software may modify an index or perform pointer arithmetic that references a memory location that is outside of the boundaries of the buffer. A subsequent write operation then produces undefined or unexpected results.

CVE-2025-59731 has been classified to as a Memory Corruption vulnerability or weakness.


Products Associated with CVE-2025-59731

stack.watch emails you whenever new vulnerabilities are published in FFmpeg or Canonical Ubuntu Linux. Just hit a watch button to start following.

 
 

Affected Versions

FFmpeg:

Exploit Probability

EPSS
0.02%
Percentile
4.83%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.