CVE-2021-3941
In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z ...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2021-3941- 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 - CVSS 2.0
- 2.1 Low
AV:L/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-369
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-3941- Weakness
- CWE-369
- Updated
- 2026-11-02
EUVDEUVD-2021-27154 No score
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.
- Record
EUVD-2021-27154- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-rpq9-h75r-mccg
6.5
In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z ...
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.
- Record
GHSA-rpq9-h75r-mccg- 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 - Weakness
- CWE-369
- Updated
- 2026-11-02
OSV
6.5
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.
- Record
CVE-2021-3941- 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 - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-3941
6.5
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.
- Record
DEBIAN-CVE-2021-3941- 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 - Updated
- 2026-11-02
Show 11 moreShow less
OSVJLSEC-2026-131
6.5
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.
- Record
JLSEC-2026-131- 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 - CVSS 2.0
- 2.1 Low
AV:L/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSVOESA-2025-2355
6.5
OpenEXR security update
OpenEXR is a high dynamic-range (HDR) image file format originally developed by Industrial Light & Magic for use in computer imaging applications.
Security Fix(es):
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.(CVE-2021-3941)
- Record
OESA-2025-2355- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-3941
6.5
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.
- Record
UBUNTU-CVE-2021-3941- 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 - Updated
- 2026-11-02
OSVMGASA-2021-0524 No score
Updated openexr packages fix security vulnerability
Integer-overflow in Imf_3_1::bytesPerDeepLineTable. (CVE-2021-3933) Divide-by-zero in Imf_3_1::RGBtoXYZ. (CVE-2021-3941)
- Record
MGASA-2021-0524- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:1537-1 No score
Security update for openexr
This update for openexr fixes the following issues:
- CVE-2021-3941: Fixed divide-by-zero in Imf_3_1:RGBtoXYZ (bsc#1192556).
- CVE-2021-3933: Fixed integer-overflow in Imf_3_1:bytesPerDeepLineTable (bsc#1192498).
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2021:1537-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:3844-1 No score
Security update for openexr
This update for openexr fixes the following issues:
- CVE-2021-3941: Fixed divide-by-zero in Imf_3_1:RGBtoXYZ (bsc#1192556).
- CVE-2021-3933: Fixed integer-overflow in Imf_3_1:bytesPerDeepLineTable (bsc#1192498).
- Record
openSUSE-SU-2021:3844-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:14846-1 No score
Security update for OpenEXR
This update for OpenEXR fixes the following issues:
- CVE-2021-20298: Fixed out-of-memory in B44Compressor (bsc#1188460).
- CVE-2021-20300: Fixed integer-overflow in Imf_2_5:hufUncompress (bsc#1188458).
- CVE-2021-20303: Fixed heap-buffer-overflow in Imf_2_5::copyIntoFrameBuffe (bsc#1188457).
- CVE-2021-20304: Fixed undefined-shift in Imf_2_5:hufDecode (bsc#1188461).
- CVE-2021-3941: Fixed divide-by-zero in Imf_3_1:RGBtoXYZ (bsc#1192556).
- Record
SUSE-SU-2021:14846-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:3843-1 No score
Security update for openexr
This update for openexr fixes the following issues:
- CVE-2021-3477: Fixed Heap-buffer-overflow in Imf_2_5::DeepTiledInputFile::readPixelSampleCounts (bsc#1184353).
- CVE-2021-3941: Fixed divide-by-zero in Imf_3_1:RGBtoXYZ (bsc#1192556).
- CVE-2021-3933: Fixed integer-overflow in Imf_3_1:bytesPerDeepLineTable (bsc#1192498).
- Record
SUSE-SU-2021:3843-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:3844-1 No score
Security update for openexr
This update for openexr fixes the following issues:
- CVE-2021-3941: Fixed divide-by-zero in Imf_3_1:RGBtoXYZ (bsc#1192556).
- CVE-2021-3933: Fixed integer-overflow in Imf_3_1:bytesPerDeepLineTable (bsc#1192498).
- Record
SUSE-SU-2021:3844-1- Updated
- 2026-11-02
OSVUSN-5150-1 No score
openexr vulnerability
It was discovered that OpenEXR incorrectly handled certain EXR image files. An attacker could possibly use this issue to cause a crash.
- Record
USN-5150-1- Updated
- 2026-11-02
OSVUSN-5620-1 No score
openexr vulnerabilities
It was discovered that OpenEXR incorrectly handled certain malformed EXR image files. If a user were tricked into opening a crafted EXR image file, a remote attacker could cause a denial of service, or possibly execute arbitrary code. These issues only affected Ubuntu 20.04 ESM. (CVE-2021-3598, CVE-2021-3605, CVE-2021-20296, CVE-2021-23215, CVE-2021-26260)
It was discovered that OpenEXR incorrectly handled certain EXR image files. An attacker could possibly use this issue to cause a crash or execute arbitrary code. (CVE-2021-3933)
It was discovered that OpenEXR incorrectly handled certain EXR image files. An attacker could possibly use this issue to cause a crash. (CVE-2021-3941)
- Record
USN-5620-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
openexrDebian:12 |
before 3.1.5-2 | 3.1.5-2 |
openexrDebian:13 |
before 3.1.5-2 | 3.1.5-2 |
openexrDebian:14 |
before 3.1.5-2 | 3.1.5-2 |
openexrDebian:10 From an advisory covering 22 CVEs |
before 2.2.1-4.1+deb10u2, plus listed versions 2.2.1-4.12.2.1-4.1+deb10u1 |
2.2.1-4.1+deb10u2 |
openexrDebian:11 From an advisory covering 7 CVEs |
before 2.5.4-2+deb11u1, plus listed versions 2.5.4-2 |
2.5.4-2+deb11u1 |
OpenEXR_jllJulia |
3.1.4+0 up to 3.2.4+0 | 3.2.4+0 |
openexrMageia:8 From an advisory covering 2 CVEs |
before 2.5.7-1.2.mga8 | 2.5.7-1.2.mga8 |
OpenEXRopenEuler:20.03-LTS-SP4 |
before 2.2.0-31.oe2003sp4 | 2.2.0-31.oe2003sp4 |
OpenEXRSUSE:Linux Enterprise Point of Sale 11 SP3 From an advisory covering 5 CVEs |
before 1.6.1-83.17.30.1 | 1.6.1-83.17.30.1 |
OpenEXRSUSE:Linux Enterprise Server 11 SP4-LTSS From an advisory covering 5 CVEs |
before 1.6.1-83.17.30.1 | 1.6.1-83.17.30.1 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
openexrSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 3 CVEs |
before 2.1.0-6.42.1 | 2.1.0-6.42.1 |
openexrSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 3 CVEs |
before 2.1.0-6.42.1 | 2.1.0-6.42.1 |
openexrSUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 3 CVEs |
before 2.1.0-6.42.1 | 2.1.0-6.42.1 |
openexrSUSE:Linux Enterprise Workstation Extension 12 SP5 From an advisory covering 3 CVEs |
before 2.1.0-6.42.1 | 2.1.0-6.42.1 |
openexrSUSE:Linux Enterprise Module for Desktop Applications 15 SP2 From an advisory covering 2 CVEs |
before 2.2.1-3.38.1 | 2.2.1-3.38.1 |
openexrSUSE:Linux Enterprise Module for Desktop Applications 15 SP3 From an advisory covering 2 CVEs |
before 2.2.1-3.38.1 | 2.2.1-3.38.1 |
openexrUbuntu:Pro:16.04:LTS |
before 2.2.0-10ubuntu2.6+esm3, plus listed versions 2.2.0-1ubuntu32.2.0-7ubuntu12.2.0-9ubuntu12.2.0-10ubuntu22.2.0-10ubuntu2.1 Show 6 moreShow less2.2.0-10ubuntu2.22.2.0-10ubuntu2.32.2.0-10ubuntu2.42.2.0-10ubuntu2.62.2.0-10ubuntu2.6+esm12.2.0-10ubuntu2.6+esm2 |
2.2.0-10ubuntu2.6+esm3 |
openexrUbuntu:18.04:LTS |
before 2.2.0-11.1ubuntu1.9, plus listed versions 2.2.0-11ubuntu12.2.0-11.1ubuntu12.2.0-11.1ubuntu1.12.2.0-11.1ubuntu1.22.2.0-11.1ubuntu1.3 Show 4 moreShow less2.2.0-11.1ubuntu1.42.2.0-11.1ubuntu1.62.2.0-11.1ubuntu1.72.2.0-11.1ubuntu1.8 |
2.2.0-11.1ubuntu1.9 |
openexrUbuntu:Pro:20.04:LTS |
before 2.3.0-6ubuntu0.5+esm1, plus listed versions 2.2.1-4.1ubuntu12.3.0-62.3.0-6build12.3.0-6ubuntu0.12.3.0-6ubuntu0.22.3.0-6ubuntu0.32.3.0-6ubuntu0.5 |
2.3.0-6ubuntu0.5+esm1 |
openexrUbuntu:Pro:22.04:LTS |
before 2.5.7-1ubuntu0.1~esm1, plus listed versions 2.5.4-22.5.7-1 |
2.5.7-1ubuntu0.1~esm1 |
openexrUbuntu:Pro:20.04:LTS From an advisory covering 7 CVEs |
before 2.3.0-6ubuntu0.5+esm1, plus listed versions 2.2.1-4.1ubuntu12.3.0-62.3.0-6build12.3.0-6ubuntu0.12.3.0-6ubuntu0.22.3.0-6ubuntu0.32.3.0-6ubuntu0.5 |
2.3.0-6ubuntu0.5+esm1 |
openexrUbuntu:Pro:22.04:LTS From an advisory covering 7 CVEs |
before 2.5.7-1ubuntu0.1~esm1, plus listed versions 2.5.4-22.5.7-1 |
2.5.7-1ubuntu0.1~esm1 |
openexropenSUSE:Leap 15.2 From an advisory covering 2 CVEs |
before 2.2.1-lp152.7.23.1 | 2.2.1-lp152.7.23.1 |
openexropenSUSE:Leap 15.3 From an advisory covering 2 CVEs |
before 2.2.1-3.38.1 | 2.2.1-3.38.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-3941 is a medium vulnerability (CVSS 6.5) in Academysoftwarefoundation Openexr, published November 11, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.30%, the 23rd percentile. Fixed in openexr 3.1.5-2.
References
bugzilla.redhat.com/show_bug.cgi?id=2019789
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I2JSMJ7HLWFPYYV7IAQZD5ZUUUN7RWBN
security.gentoo.org/glsa/202210-31
debian.org/security/2022/dsa-5299
lists.debian.org/debian-lts-announce/2022/12/msg00022.html
nvd.nist.gov/vuln/detail/CVE-2021-3941
Show 37 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/I2JSMJ7HLWFPYYV7IAQZD5ZUUUN7RWBN
github.com/advisories/GHSA-rpq9-h75r-mccg
security-tracker.debian.org/tracker/CVE-2021-3941
advisories.mageia.org/MGASA-2021-0524.html
bugs.mageia.org/show_bug.cgi?id=29657
ubuntu.com/security/notices/USN-5144-1
ubuntu.com/security/notices/USN-5150-1
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2355
suse.com/support/update/announcement/2021/suse-su-202114846-1
bugzilla.suse.com/1188457
bugzilla.suse.com/1188458
bugzilla.suse.com/1188460
bugzilla.suse.com/1188461
bugzilla.suse.com/1192556
suse.com/security/cve/CVE-2021-20298
suse.com/security/cve/CVE-2021-20300
suse.com/security/cve/CVE-2021-20303
suse.com/security/cve/CVE-2021-20304
suse.com/security/cve/CVE-2021-3941
suse.com/support/update/announcement/2021/suse-su-20213843-1
bugzilla.suse.com/1184353
bugzilla.suse.com/1192498
suse.com/security/cve/CVE-2021-3477
suse.com/security/cve/CVE-2021-3933
suse.com/support/update/announcement/2021/suse-su-20213844-1
ubuntu.com/security/CVE-2021-3941
github.com/AcademySoftwareFoundation/openexr/pull/1153
ubuntu.com/security/notices/USN-5620-1
cve.org/CVERecord?id=CVE-2021-3941
ubuntu.com/security/CVE-2021-3598
ubuntu.com/security/CVE-2021-3605
ubuntu.com/security/CVE-2021-3933
ubuntu.com/security/CVE-2021-20296
ubuntu.com/security/CVE-2021-23215
ubuntu.com/security/CVE-2021-26260
lists.opensuse.org/archives/list/[email protected]/thread/EKJUN3YRRGAS46NITMDUWNKKE4DUYDHB
lists.opensuse.org/archives/list/[email protected]/thread/TZ2PO5L23Z2LRC3XFHTL6XCTSPVECICH