8.7high
Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress
- Severity
- 8.7high CVSS:4.0 by Google
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
Description
When decoding an OpenEXR file that uses DWAA or DWAB compression, there's an implicit assumption that the height and width are divisible by 8. If the height or width of the image is not divisible by 8, the copy loops at [0] and [1] will continue to write until the next multiple of 8. The buffer td->uncompressed_data is allocated in decode_block based on the precise height and width of the image, so the "rounded-up" multiple of 8 in the copy loop can exceed the buffer bounds, and the write block starting at [2] can corrupt following heap memory. We recommend upgrading to version 8.0 or beyond.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| EXR | from 9a32b863074ed4140141e0d3613905c6f1fe61c5 before 8.0, from 7.1.1 before 8.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
When decoding an OpenEXR file that uses DWAA or DWAB compression, there's an implicit assumption that the height and width are divisible by 8. If the height or width of the image is not divisible by 8, the copy loops at [0] and [1] will continue to write until the next multiple of 8. The buffer td->uncompressed_data is allocated in decode_block based on the precise height and width of the image, so the "rounded-up" multiple of 8 in the copy loop can exceed the buffer bounds, and the write block starting at [2] can corrupt following heap memory. We recommend upgrading to version 8.0 or beyond.
NVD (es)
Al decodificar un archivo OpenEXR que utiliza compresión DWAA o DWAB, existe una suposición implícita de que la altura y el ancho son divisibles por 8. Si la altura o el ancho de la imagen no es divisible por 8, los bucles de copia en [0] y [1] continuarán escribiendo hasta el siguiente múltiplo de 8. El búfer td -> uncompressed_data se asigna en decode_block basándose en la altura y el ancho precisos de la imagen, por lo que el múltiplo de 8 'redondeado hacia arriba' en el bucle de copia puede exceder los límites del búfer, y el bloque de escritura que comienza en [2] puede corromper la memoria del montón subsiguiente. Recomendamos actualizar a la versión 8.0 o posterior.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59732 changed 2026-02-26 | CVE Terms of Use |
| NVD | CVE-2025-59732 changed 2026-10-19 | Public domain |