cve.bz

CVE-2025-12840 openexr openexr: Heap-based Buffer Overflow

7.8 highEPSS 0.2%

High (7.8) in openexr openexr. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 9th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-12-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-12840 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-12840?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-12840?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-12840 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2025-12840

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2025-12840](https://cve.bz/cve/badge/CVE-2025-12840.svg)](https://cve.bz/cve/CVE-2025-12840)

HTML:

<a href="https://cve.bz/cve/CVE-2025-12840"><img src="https://cve.bz/cve/badge/CVE-2025-12840.svg" alt="CVE-2025-12840"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openexr:openexrbefore 3.4.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13openexrno fix listedDEBIAN-CVE-2025-12840
Debian14openexr3.4.6+ds-1DEBIAN-CVE-2025-12840
Ubuntu25.10, 26.10, Pro:26.04:LTSopenexrno fix listedUBUNTU-CVE-2025-12840
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0openexr3.2.2-160000.4.1SUSE-SU-2025:21189-1
openSUSELeap 16.0openexr3.2.2-160000.4.1openSUSE-SU-2025:20148-1
openSUSETumbleweedopenexr3.4.3-2.1openSUSE-SU-2025:15759-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat products as it is a heap-based buffer overflow in OpenEXR that could lead to arbitrary code execution. Exploitation requires user interaction, specifically opening a malicious EXR file or visiting a malicious page. Red Hat products are affected if they process untrusted EXR files.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. Users are advised to exercise caution when opening untrusted EXR files or visiting untrusted web pages.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10OpenEXRNot affected
Red Hat Enterprise Linux 6OpenEXROut of support scope
Red Hat Enterprise Linux 7OpenEXRNot affected
Red Hat Enterprise Linux 8OpenEXRNot affected
Red Hat Enterprise Linux 9OpenEXRNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-12840.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON