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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-23 · Modified: 2025-12-24
- Aliases: UBUNTU-CVE-2025-12840, DEBIAN-CVE-2025-12840
- Record: https://cvemate.com/vulnerability/CVE-2025-12840 · JSON: https://cvemate.com/vulnerability/CVE-2025-12840/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.0, CVE.org) CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.21%, percentile 11.869%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- academy software foundation openexr: 3.4.0
- debian openexr (Debian): All versions (No fix recorded) \| \< 3.4.6+ds-1
- ubuntu openexr (Ubuntu): All versions (No fix recorded)
- openexr openexr: \< 3.4.3

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-25-991/>
- <https://ubuntu.com/security/CVE-2025-12840>
- <https://www.cve.org/CVERecord?id=CVE-2025-12840>
- <https://security-tracker.debian.org/tracker/CVE-2025-12840>

---

Data as of 2026-12-05T06:34:27.780Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
