Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Linux

CVE-2021-45942

Medium · CVSS 5.5EPSS 1.8% First seen December 01, 2026
LinuxOperating systemsVulnerabilities

Research article

Heap Overflow Vulnerability in OpenEXR: CVE-2021-45942

CVECVE-2021-45942
PublishedDecember 01, 2026 14:45 UTC
Research cut-offDecember 01, 2026 14:35 UTC
Sources reviewed4: 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 IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2021-45942AcademySoftwareFoundationOpenEXRCWE-7875.5 MEDIUM, scored by nvd@nist.gov (Primary)2022-01-012026-06-17Modified

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

AffectedFixed
OpenEXR ≥ 3.1.0, < 3.1.43.1.4 [1]
Fedora 34, 35, 36Not listed
Debian 10.0, 11.0Not listed
Ubuntu 22.04 LTSNot 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

  1. Verify if the installed version of OpenEXR is within the affected range [1].
  2. Update OpenEXR to the fixed version 3.1.4 [1].
  3. Review Ubuntu 22.04 LTS for additional patches or advisories [3].
  4. Monitor for new advisories or updates from the vendor.

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

  1. 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. CVE ID, vendor, product, CWE, CVSS scores, affected versions, fixed versions, references
  2. 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. Exploitation status
  3. USN-9301-1: OpenEXR vulnerabilities. Ubuntu USN, 2026-12-01. https://ubuntu.com/security/notices/USN-9301-1. Accessed 2026-12-01. Vulnerability description, impact, affected products, Ubuntu notice
  4. 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. EPSS score and threat intelligence status

Written with AI assistance from the 4 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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…

Excerpt from Ubuntu USN. No official description has been published yet.

Severity breakdown

Medium · 5.5 CVSS 3.1 base score from NVD

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

Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
openexr≥ 3.1.0, < 3.1.43.1.4
fedoraproject fedora34, 35, 36—
debian linux10.0, 11.0—

From NVD's CPE data; confirm with the vendor advisory before relying on a version number.

Public exploits

Exploit available Exploit code or a detailed exploitation write-up is public, so attacks are easier to carry out.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

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