CVE-2021-45942
Research article
Heap Overflow Vulnerability in OpenEXR: CVE-2021-45942
| CVE | CVE-2021-45942 |
|---|---|
| Published | December 01, 2026 14:45 UTC |
| Research cut-off | December 01, 2026 14:35 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-06-17); CISA KEV catalog; FIRST EPSS (2026-11-30); 1 vendor bulletin |
Executive summary
CVE-2021-45942 represents a heap-based buffer overflow in the OpenEXR library, triggered by improper handling of deep scanline image data. The CVSS 3.1 score is 5.5 MEDIUM, as assigned by the NVD [1]. This vulnerability impacts several versions of OpenEXR and Ubuntu 22.04 LTS. The reviewed sources do not confirm that this flaw has been exploited [2]. The primary recommendation for OpenEXR is to update to fixed version 3.1.4 [1].
Key points
- CVE-2021-45942 is a heap-based buffer overflow in the OpenEXR library [1].
- The CVSS 3.1 score is 5.5 MEDIUM, assigned by the NVD [1].
- The vulnerability affects OpenEXR versions ≥ 3.1.0, < 3.1.4 [1].
- The reviewed sources do not confirm exploitation [2].
- The main recommendation is to update to a fixed version if available [3].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2021-45942 | AcademySoftwareFoundation | OpenEXR | CWE-787 | 5.5 MEDIUM, scored by nvd@nist.gov (Primary) | 2022-01-01 | 2026-06-17 | Modified |
Vulnerability description
A heap-based buffer overflow is reported in OpenEXR when the software improperly processes channels with subsampling during the merging of deep scanline image data [3]. The flaw may enable an attacker to cause a denial of service or potentially execute arbitrary code, though this has not been confirmed [3].
Attack surface and exploitation prerequisites
The CVSS vector indicates that the vulnerability does not require any privileges but needs user interaction and local access [1]. However, the impact on system availability is rated as high [1].
Impact analysis
The CVSS vector highlights a high impact on availability (A:H) [1]. The description suggests that the flaw may lead to denial of service or arbitrary code execution, although these outcomes are not confirmed [3].
Affected products and versions
| Affected | Fixed |
|---|---|
| OpenEXR ≥ 3.1.0, < 3.1.4 | 3.1.4 [1] |
| Fedora 34, 35, 36 | Not listed |
| Debian 10.0, 11.0 | Not listed |
| Ubuntu 22.04 LTS | Not listed |
Exploitation and threat intelligence status
CVE-2021-45942 is not included in the CISA KEV catalog as of 2026-12-01 [2]. The EPSS score estimates a 1.82% probability of exploitation within the next 30 days [4].
Detection and exposure assessment
To assess exposure, organizations should verify if their installed version of OpenEXR falls within the affected range [1]. No specific detection methods are provided by the sources [3].
Remediation
The Ubuntu notice does not list fixed package versions for this CVE [3]; NVD lists 3.1.4 as fixed for OpenEXR [1]. The Ubuntu notice does not list fixed package versions for this CVE [3].
Remediation checklist
Evidence gaps
- The sources do not describe the internal workings of the affected component.
- The sources do not provide a detailed explanation of the root cause beyond the CWE name.
- The sources do not elaborate on how the flaw operates in technical detail.
- The sources do not offer a workaround or alternative mitigation strategy.
- The sources do not provide a method for detection or identification.
References
- CVE-2021-45942 record. NIST National Vulnerability Database (NVD), 2026-06-17. https://nvd.nist.gov/vuln/detail/CVE-2021-45942. Accessed 2026-12-01.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-01. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-01.
- USN-9301-1: OpenEXR vulnerabilities. Ubuntu USN, 2026-12-01. https://ubuntu.com/security/notices/USN-9301-1. Accessed 2026-12-01.
- EPSS score for CVE-2021-45942. FIRST, 2026-11-30. https://api.first.org/data/v1/epss?cve=CVE-2021-45942. Accessed 2026-12-01.
Summary
It was discovered that OpenEXR incorrectly handled subsampled channels when compositing deep scan line images, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 22.04 LTS. (CVE-2021-45942) It was discovered that OpenEXR did not properly validate…
Severity breakdown
Medium · 5.5
An attacker without an account can exploit this with local access if a user is tricked into an action.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
- CWE-787: Out-of-bounds Write
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| openexr | ≥ 3.1.0, < 3.1.4 | 3.1.4 |
| fedoraproject fedora | 34, 35, 36 | — |
| debian linux | 10.0, 11.0 | — |
Public exploits
Exploit available
References by type
Patches and fixed releases
- github.com/AcademySoftwareFoundation/openexr/commit/11cad77da87c4fa2aab…
- github.com/AcademySoftwareFoundation/openexr/commit/db217f29dfb24f6b4b5…
- github.com/AcademySoftwareFoundation/openexr/blob/v3.1.4/CHANGES.md
- github.com/AcademySoftwareFoundation/openexr/releases/tag/v3.1.4
Other references
- github.com/google/oss-fuzz-vulns/blob/main/vulns/openexr/OSV-2021-1627.…
- lists.debian.org/debian-lts-announce/2022/12/msg00022.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
- security.gentoo.org/glsa/202210-31
- debian.org/security/2022/dsa-5299
Frequently asked questions
What is CVE-2021-45942?
CVE-2021-45942 represents a heap-based buffer overflow in the OpenEXR library, triggered by improper handling of deep scanline image data. The CVSS 3.1 score is 5.5 MEDIUM, as assigned by the NVD. This vulnerability impacts several versions of OpenEXR and Ubuntu 22.04 LTS. The reviewed sources do not confirm that this flaw has been exploited. The primary recommendation for OpenEXR is to update to fixed version 3.1.4. Weakness type: Out-of-bounds Write (CWE-787).
How severe is CVE-2021-45942?
CVE-2021-45942 has a CVSS 3.1 base score of 5.5 (medium), from NVD. An attacker without an account can exploit this with local access if a user is tricked into an action.
Is CVE-2021-45942 being exploited?
Not as far as is known: CVE-2021-45942 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026. Exploit code or a proof of concept has been published, which makes attacks more likely. EPSS estimates a 1.8% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2021-45942?
openexr ≥ 3.1.0, < 3.1.4 (fixed in 3.1.4); fedoraproject fedora 34, 35, 36; debian linux 10.0, 11.0.
How do I fix CVE-2021-45942?
Verify if the installed version of OpenEXR is within the affected range. Update OpenEXR to the fixed version 3.1.4. Review Ubuntu 22.04 LTS for additional patches or advisories.
Timeline & sources
References
Related vulnerabilities & news
- EDK II PXE Pre-Boot Flaw CVE-2026-97631 Gets Patches, Rollout Uneven Across Vendors
- Ubuntu Issues libgit2 Fix for TLS IP Address Certificate Validation Flaw on 14.04 LTS
- CVE-2026-104616 — SUSE Rancher
- AI Cryptanalysis Rumors Overstated: Anthropic's Lattice Research Is Not an RSA Break
- Ubuntu Fixes lightdm-gtk-greeter Login Regression and Patches libXrender Heap Overflow (CVE-2026-88807)