# CVE-2021-3941: In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as float Z = (1 - chroma.white.x - chroma.white.y) Y /…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2022-03-25T00:00:00.000Z
- Modified: 2026-06-17T04:06:01.420Z
- Weaknesses: CWE-369
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- openexr: OpenEXR 3.1.2
- openexr openexr: 3.1.2
- redhat enterprise_linux: 6.0; 7.0; 8.0
- fedoraproject fedora: 34; 35; 36
- debian debian_linux: 10.0; 11.0

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2019789> (issue-tracking, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I2JSMJ7HLWFPYYV7IAQZD5ZUUUN7RWBN/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202210-31> (third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5299> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00022.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3941](https://www.cve.org/CVERecord?id=CVE-2021-3941), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3941](https://nvd.nist.gov/vuln/detail/CVE-2021-3941), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3941 · Whole record: https://cve.day/CVE-2021-3941.json · Rebuilt by cve.day 2026-11-25T22:58:07.264Z
