cve.bz

CVE-2021-3941 Divide By Zero

6.5 mediumEPSS 0.3%Fix available

Medium (6.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-369 Divide By Zero
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3941 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3941?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3941?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3941 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openexr:openexr3.1.2
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10openexr2.2.1-4.1+deb10u2DLA-3236-1
Debian11openexr2.5.4-2+deb11u1DSA-5299-1
Debian12, 13, 14openexr3.1.5-2DEBIAN-CVE-2021-3941
Ubuntu18.04:LTSopenexr2.2.0-11.1ubuntu1.9UBUNTU-CVE-2021-3941 USN-5150-1
UbuntuPro:16.04:LTSopenexr2.2.0-10ubuntu2.6+esm3UBUNTU-CVE-2021-3941 USN-5150-1
UbuntuPro:20.04:LTSopenexr2.3.0-6ubuntu0.5+esm1UBUNTU-CVE-2021-3941 USN-5620-1
UbuntuPro:22.04:LTSopenexr2.5.7-1ubuntu0.1~esm1UBUNTU-CVE-2021-3941 USN-5620-1
SUSELinux Enterprise Module for Desktop Applications 15 SP2, Linux Enterprise Module for Desktop Applications 15 SP3openexr2.2.1-3.38.1SUSE-SU-2021:3844-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSOpenEXR1.6.1-83.17.30.1SUSE-SU-2021:14846-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 moreopenexr2.1.0-6.42.1SUSE-SU-2021:3843-1
openSUSELeap 15.2openexr2.2.1-lp152.7.23.1openSUSE-SU-2021:1537-1
openSUSELeap 15.3openexr2.2.1-3.38.1openSUSE-SU-2021:3844-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw is out of support scope for OpenEXR as shipped in Red Hat Enterprise Linux 6 and 7. Please see https://access.redhat.com/support/policy/updates/errata/ for more information on support scopes.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6OpenEXROut of support scope
Red Hat Enterprise Linux 7OpenEXROut of support scope
Red Hat Enterprise Linux 8mingw-OpenEXRFix deferred
Red Hat Enterprise Linux 8OpenEXRFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3941.

References

Check your stackJSON