Vulnerability · Published Dec 23, 2025 · Assigned by zdi

CVE-2025-12840Academy Software Foundation OpenEXR EXR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

High 7.8

In plain English

A high-severity heap buffer overflow in OpenEXR from Academy Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.8High
Exploit odds (30 days)0.2%top 90.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Academy Software Foundation OpenEXR EXR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Academy Software Foundation OpenEXR. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of EXR files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-27948.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12openexrno fix listedDEBIAN-CVE-2025-12840
Debian:13openexrno fix listedDEBIAN-CVE-2025-12840
Debian:14openexr3.4.6+ds-1DEBIAN-CVE-2025-12840
Ubuntu:25.10openexrno fix listedUBUNTU-CVE-2025-12840
Ubuntu:26.10openexrno fix listedUBUNTU-CVE-2025-12840

Affected products (as reported)

VendorProductVersions
Academy Software Foundation OpenEXR 3.4.0

Weakness: CWE-122 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References