Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. openexr
  4. ›
  5. CVE-2021-3941

CVE-2021-3941: Divide By Zero

March 25, 2022 (updated November 9, 2023)

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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=2019789
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I2JSMJ7HLWFPYYV7IAQZD5ZUUUN7RWBN/
  • nvd.nist.gov/vuln/detail/CVE-2021-3941

Code Behaviors & Features

Detect and mitigate CVE-2021-3941 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 3.1.2

Fixed versions

  • 3.1.4

Solution

Upgrade to version 3.1.4 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-369: Divide By Zero

Source file

conan/openexr/CVE-2021-3941.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:44 +0000.