High severity · published Aug 23, 2022
CVE-2021-20304
A flaw was found in OpenEXR's hufDecode functionality
7.5
CVSS
2.1%
EPSS
No
On KEV
Description
A flaw was found in OpenEXR's hufDecode functionality. This flaw allows an attacker who can pass a crafted file to be processed by OpenEXR, to trigger an undefined right shift error. The highest threat from this vulnerability is to system availability.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.1% · higher than 81% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OP
Openexr · Openexr
through 2.5.7 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-20304
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-20304
Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-20304
Exploit
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26229
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=1939157
Patch
https://github.com/AcademySoftwareFoundation/openexr/commit/51a92d67f53c08230734e74564c807043cbfe41e
Patch
https://github.com/AcademySoftwareFoundation/openexr/pull/849
Third Party Advisory
https://security.gentoo.org/glsa/202210-31
More from Openexr
9.8
CVE-2026-42217
OpenEXR: Shift exponent overflow in `readVariableLengthInteger()` (`ImfIDManifest.cpp`)
9.1
CVE-2026-42216
OpenEXR: Out-of-bounds read in `IDManifest::init()` during prefix expansion
9.1
CVE-2025-48072
OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry
9.1
CVE-2023-5841
Due to a failure in validating the number of scanline samples of a OpenEXR file containing deep scanline data, Academy Software Foundation OpenEX image parsing library version…
8.8
CVE-2026-41142
OpenEXR is Vulnerable to Integer overflow in ImageChannel::resize leads to heap OOB write via OpenEXRUtil public API
