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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 43, 2026-11-28)
- **CWE:** CWE-195
- **Aliases:** GHSA-q6vj-wxvf-5m8c, PYSEC-2026-2849
- **Published:** 2026-02-24T02:26:16.659Z
- **Modified:** 2026-07-13T16:43:46.630Z

## Who should check

- Projects that depend on PyPI package openexr (\>= 3.3.0, \< 3.3.7)
- Anyone running AcademySoftwareFoundation openexr \>= 3.3.0, \< 3.3.7; \>= 3.4.0, \< 3.4.5

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

## Affected and fixed versions

- PyPI `openexr`: affected \>= 3.3.0, \< 3.3.7; fixed 3.3.7, 3.4.5 (osv)
- AcademySoftwareFoundation openexr: \>= 3.3.0, \< 3.3.7; \>= 3.4.0, \< 3.4.5 (cvelist)

## Mitigation

- Upgrade openexr to one of 3.3.7, 3.4.5 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-26981. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-26981.md
Affected: openexr >= 3.3.0, < 3.3.7
Fixed in: 3.3.7, 3.4.5

Steps:
1. Search this machine and project for openexr (PyPI), AcademySoftwareFoundation openexr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-26981 being exploited?

There is no confirmed exploitation: CVE-2026-26981 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-26981?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-26981?

openexr \>= 3.3.0, \< 3.3.7.

### Is there a fix for CVE-2026-26981?

Yes. Fixed in 3.3.7, 3.4.5. Upgrade openexr to one of 3.3.7, 3.4.5 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-26981?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-26981>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q6vj-wxvf-5m8c> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2849> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-26981> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-26981>
