Divide-by-Zero Vulnerability in RGBtoXYZ() Routine of OpenEXR

Divide-by-Zero Vulnerability in RGBtoXYZ() Routine of OpenEXR

CVE-2021-3941 · MEDIUM Severity

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H

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.

Learn more about our Web Application Penetration Testing UK.