# CVE-2021-45942: OpenEXR 3.1.x before 3.1.4 has a heap-based buffer overflow in Imf31::LineCompositeTask::execute (called from IlmThread31::NullThreadPoolPr…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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.82%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-31T00:00:00.000Z
- Modified: 2026-06-17T04:14:17.563Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

OpenEXR 3.1.x before 3.1.4 has a heap-based buffer overflow in Imf_3_1::LineCompositeTask::execute (called from IlmThread_3_1::NullThreadPoolProvider::addTask and IlmThread_3_1::ThreadPool::addGlobalTask). NOTE: db217f2 may be inapplicable.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openexr openexr: from 3.1.0 before 3.1.4
- fedoraproject fedora: 34; 35; 36
- debian debian_linux: 10.0; 11.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41416> (exploit, issue-tracking, mailing-list, patch, third-party-advisory)
- <https://github.com/AcademySoftwareFoundation/openexr/pull/1209> (exploit, patch, third-party-advisory)
- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/openexr/OSV-2021-1627.yaml> (third-party-advisory)
- <https://github.com/AcademySoftwareFoundation/openexr/commit/db217f29dfb24f6b4b5100c24ac5e7490e1c57d0> (patch, third-party-advisory)
- <https://github.com/AcademySoftwareFoundation/openexr/commit/11cad77da87c4fa2aab7d58dd5339e254db7937e> (patch, third-party-advisory)
- <https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v3.1.4> (release-notes, third-party-advisory)
- <https://github.com/AcademySoftwareFoundation/openexr/blob/v3.1.4/CHANGES.md#version-314-january-26-2022> (release-notes, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJ5PW4WNXBKCRFGDZGAQOSVH2BKZKL4X/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XJUK7WIQV5EKWTCZBRXFN6INHG6MLS5O/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6TEZDE2S2DB4BF4LZSSV4W3DNW7DSRHJ/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202210-31> (third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5299> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00022.html> (mailing-list, third-party-advisory)

## Sources

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

---

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