CVE-2021-3941 Denial of service in openexr

Medium 6.5 Published Updated

A divide-by-zero error in OpenEXR allows attackers to cause a denial of service via specially crafted files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3941?

CVE-2021-3941 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 25 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-369

Which versions are affected by CVE-2021-3941?

It affects 4 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Openexr Openexr, Redhat Enterprise Linux.

How do I fix CVE-2021-3941?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-3941 being exploited?

There is no known exploitation of CVE-2021-3941 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-3941, GHSA-rpq9-h75r-mccg, JLSEC-2026-131, OESA-2025-2355, UBUNTU-CVE-2021-3941, USN-5150-1.

Is CVE-2021-3941 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free