CVE-2021-3941 in Debian Linux and 3 more products
In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z = (1 - chroma.white.x - chroma.white.y) * Y / chroma.white.y;` and `chroma.green.y * (X + Z))) / d;` but the divisor is not checked for a 0 value. A specially crafted file could trigger a divide-by-zero condition which c...
Affects 4 products from 4 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 10.0 11.0 |
| Fedoraproject | Fedora | 34 35 36 |
| Openexr | Openexr | 3.1.2 |
| Redhat | Enterprise Linux | 6.0 7.0 8.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z = (1 - chroma.white.x - chroma.white.y) * Y / chroma.white.y;` and `chroma.green.y * (X + Z))) / d;` but the divisor is not checked for a 0 value. A specially crafted file could trigger a divide-by-zero condition which could affect the availability of programs linked with OpenEXR.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-3941 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-307006-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H |
| Published | 2022-03-25 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-369: CWE-369
Analysis AI-written, not human-reviewed
A divide-by-zero vulnerability exists in the RGBtoXYZ() routine of the ImfChromaticities.cpp file in OpenEXR, which could lead to program crashes or availability issues when processing specially crafted files.
An attacker could exploit this vulnerability by creating a malicious file that, when processed by a program linked with the affected version of OpenEXR, triggers a divide-by-zero error in the RGBtoXYZ() routine. This could result in a denial of service condition.
Questions
What is CVE-2021-3941?
A divide-by-zero vulnerability exists in the RGBtoXYZ() routine of the ImfChromaticities.cpp file in OpenEXR, which could lead to program crashes or availability issues when processing specially crafted files.
What is the CVSS score for CVE-2021-3941?
CVE-2021-3941 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H. EPSS: 0.3%.
Is CVE-2021-3941 actively exploited?
No confirmed active exploitation of CVE-2021-3941 as of 2026-09-25.
How do I remediate CVE-2021-3941?
Priority: MEDIUM. Advisory: https://bugzilla.redhat.com/show_bug.cgi?id=2019789
What systems are affected by CVE-2021-3941?
CVE-2021-3941 affects Debian Debian Linux; Fedoraproject Fedora; Openexr Openexr; Redhat Enterprise Linux.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.