Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3941
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:55 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-3941
Complete source record
{
"id": "40e35007e6eaeda10226c7454079ec371003cddef5ecba8cfb6d55a57cfdfff4",
"url": "https://osv.dev/vulnerability/CVE-2021-3941",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3941",
"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.",
"evidence": "osv:CVE-2021-3941",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-3941",
"aliases": [
"CVE-2021-3941"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/AcademySoftwareFoundation/openexr",
"type": "GIT",
"events": [
{
"introduced": "2eec453b01b1187873474f31eb5b127b0a52e4ff"
},
{
"last_affected": "2eec453b01b1187873474f31eb5b127b0a52e4ff"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:openexr:openexr:3.1.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.2"
},
{
"last_affected": "3.1.2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.1.2",
"v3.1.2-rc2",
"v3.1.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3941.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/academysoftwarefoundation/openexr",
"type": "GIT",
"events": [
{
"introduced": "2eec453b01b1187873474f31eb5b127b0a52e4ff"
},
{
"last_affected": "2eec453b01b1187873474f31eb5b127b0a52e4ff"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:openexr:openexr:3.1.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.2"
},
{
"last_affected": "3.1.2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.1.2",
"v3.1.2-rc2",
"v3.1.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3941.json"
}
}
],
"modified": "2026-10-24T10:30:33.834476946Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I2JSMJ7HLWFPYYV7IAQZD5ZUUUN7RWBN/",
"https://lists.debian.org/debian-lts-announce/2022/12/msg00022.html",
"https://security.gentoo.org/glsa/202210-31",
"https://www.debian.org/security/2022/dsa-5299",
"https://bugzilla.redhat.com/show_bug.cgi?id=2019789"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
},
{
"introduced": "11.0"
},
{
"last_affected": "11.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "34"
},
{
"last_affected": "34"
},
{
"introduced": "35"
},
{
"last_affected": "35"
},
{
"introduced": "36"
},
{
"last_affected": "36"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "6.0"
},
{
"last_affected": "6.0"
},
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
},
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3941",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 433389,
"published_at": "2022-03-25T19:15:09.307+00:00"
}