Skip to content
Fencer Vulns
medium 6.5

CVE-2021-3941 json

In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z = (1 - chroma.white.x - chroma.white.y) *…

published 2022-03-25 4 y ago modified 2026-07-18 3 mo ago also EUVD-2021-27154 , JLSEC-2026-131

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 23%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia OpenEXR_jll 3.2.4+0
  • openexr Debian 14, Debian 13, Debian 12 3.1.5-2

debian advisories DEBIAN-CVE-2021-3941

  • openexr Ubuntu 18.04 LTS 2.2.0-11.1ubuntu1.9
  • openexr Ubuntu Pro 16.04 LTS 2.2.0-10ubuntu2.6+esm3
  • openexr Ubuntu Pro 20.04 LTS 2.3.0-6ubuntu0.5+esm1
  • openexr Ubuntu Pro 22.04 LTS 2.5.7-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2021-3941

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • OpenEXR SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 1.6.1-83.17.30.1
  • openexr SLE Module for Desktop Applications 15 SP3, SLE Module for Desktop Applications 15 SP2 2.2.1-3.38.1
  • openexr SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +1 more 2.1.0-6.42.1

suse advisories SUSE-SU-2021:14846-1SUSE-SU-2021:3844-1SUSE-SU-2021:3843-1

  • openexr openSUSE Leap 15.2 2.2.1-lp152.7.23.1
  • openexr openSUSE Leap 15.3 2.2.1-3.38.1

opensuse advisories openSUSE-SU-2021:1537-1openSUSE-SU-2021:3844-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-3941 updated cvss 4.0

openexr: Divide-by-zero in Imf_3_1::RGBtoXYZ

  • Red Hat Enterprise Linux 6 OpenEXR, OpenEXR-libs Red Hat Enterprise Linux 7 OpenEXR, OpenEXR-libs
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 OpenEXR, OpenEXR-libs, mingw-OpenEXR, mingw32-OpenEXR, mingw64-OpenEXR
    affected: no fix available “Fix deferred”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.30% chance of exploitation in the next 30 days, higher than 23% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
NVD 2.0 2.1 AV:L/AC:L/Au:N/C:N/I:N/A:P
OSV 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia OpenEXR_jll
>=3.1.4+0, <3.2.4+0
3.2.4+0

Affected products

  • n/a openexr

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.