# CVE-2026-26981: OpenEXR has heap-buffer-overflow via signed integer underflow in ImfContextInit.cpp

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/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): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-24T02:26:16.659Z
- Modified: 2026-07-13T16:43:46.630Z
- Also known as: GHSA-q6vj-wxvf-5m8c, PYSEC-2026-2849
- Weaknesses: CWE-195
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In versions 3.3.0 through 3.3.6 and 3.4.0 through 3.4.4, a heap-buffer-overflow (OOB read) occurs in the `istream_nonparallel_read` function in `ImfContextInit.cpp` when parsing a malformed EXR file through a memory-mapped `IStream`. A signed integer subtraction produces a negative value that is implicitly converted to `size_t`, resulting in a massive length being passed to `memcpy`. Versions 3.3.7 and 3.4.5 contain a patch.

(As written by CVE List.)

## Affected

- AcademySoftwareFoundation openexr: >= 3.3.0, < 3.3.7; >= 3.4.0, < 3.4.5
- openexr (PyPI): from 3.3.0 before 3.3.7; from 3.4.0 before 3.4.5
- openexr openexr: from 3.3.0 before 3.3.7; from 3.4.0 before 3.4.5

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/AcademySoftwareFoundation/openexr/security/advisories/GHSA-q6vj-wxvf-5m8c> (exploit, vendor-advisory, web)
- <https://github.com/AcademySoftwareFoundation/openexr/commit/6bb2ddf1068573d073edf81270a015b38cc05cef> (patch, web)
- <https://github.com/AcademySoftwareFoundation/openexr/commit/d2be382758adc3e9ab83a3de35138ec28d93ebd8> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-26981> (advisory)
- <https://github.com/AcademySoftwareFoundation/openexr> (package)
- <https://pypi.org/project/openexr> (package)
- <https://github.com/advisories/GHSA-q6vj-wxvf-5m8c> (advisory)

## Sources

- CVE List: [CVE-2026-26981](https://www.cve.org/CVERecord?id=CVE-2026-26981), CVE Terms of Use, modified 2026-02-24
- GitHub Advisory Database: [GHSA-q6vj-wxvf-5m8c](https://github.com/advisories/GHSA-q6vj-wxvf-5m8c), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-26981](https://nvd.nist.gov/vuln/detail/CVE-2026-26981), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2849](https://osv.dev/vulnerability/PYSEC-2026-2849), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-26981 · Whole record: https://cve.day/CVE-2026-26981.json · Rebuilt by cve.day 2026-11-25T22:59:14.706Z
