# CVE-2021-20304: A flaw was found in OpenEXR's hufDecode functionality.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.99%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-23T00:00:00.000Z
- Modified: 2026-06-17T03:33:38.340Z
- Weaknesses: CWE-190
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- OpenEXR: Fixed in OpenEXR 3.0.0-beta
- openexr openexr: up to 2.5.7

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26229> (exploit, mailing-list, third-party-advisory)
- <https://github.com/AcademySoftwareFoundation/openexr/pull/849> (patch, third-party-advisory)
- <https://github.com/AcademySoftwareFoundation/openexr/commit/51a92d67f53c08230734e74564c807043cbfe41e> (patch, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1939157> (issue-tracking, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2021-20304> (third-party-advisory)
- <https://security.gentoo.org/glsa/202210-31> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-20304](https://www.cve.org/CVERecord?id=CVE-2021-20304), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20304](https://nvd.nist.gov/vuln/detail/CVE-2021-20304), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20304 · Whole record: https://cve.day/CVE-2021-20304.json · Rebuilt by cve.day 2026-11-25T22:58:07.768Z
