CVE-2021-45942: USN-9301-1: OpenEXR vulnerabilities

Vulnerability · Reported by Ubuntu Security Notices · · CWE-787

Severity
Medium Risk score 55/100
CVSS
5.5 v3.1 · from NVD
Exploit chance (EPSS)
1.82% Higher than 79% of CVEs
Known exploited
No Not in CISA KEV

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 the number of samples in deep scan line image files, 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 24.04 LTS. (CVE-2023-5841) It was discovered that OpenEXR incorrectly handled certain uncompressed tiled image files, 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 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2025-12495) It was discovered that OpenEXR incorrectly calculated chunk sizes for scan line image files that had a tiles attribute, leading to a heap-based buffer overflow. An attacker co

How this vulnerability can be exploited

This is a out-of-bounds write flaw (CWE-787). An attacker can exploit this vulnerability with local access to the system, without any login, and only if a user is tricked into an action (such as clicking a link or opening a file). Attack complexity is low, so no special conditions are needed. If successful, the attacker could crash or disrupt the service.

Is it being exploited?

The EPSS model estimates a 1.82% chance this CVE will be exploited in the next 30 days, which is elevated and higher than 79% of all published CVEs.

Patch priority and what to do

Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Warn users about suspicious links and files that could trigger the flaw. 4) Review logs for signs of exploitation since the publication date.

CVSS vector

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

See what each part means in the official CVSS calculator ↗

Tags

Linux, rce, CVE-2021-45942

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.