CVE-2026-40250
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedOpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. In versions 3.4.0 through 3.4.9, 3.3.0 through 3.3.9, and 3.2.0 through 3.2.7, `internal_dwa_compressor.h:1040` performs `chan->width * chan->bytes_per_element` in `int32` arithmetic without a `(size_t)` cast. This is the same overflow pattern fixed in other decoders by CVE-2026-34589/34588/34544, but this line was missed. Versions 3.4.10, 3.3.10, and 3.2.8 contain a fix that addresses `internal_dwa_compressor.h:1040`.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceOpenEXR contains an integer overflow vulnerability in the DWA compressor at internal_dwa_compressor.h:1040. The code performs width * bytes_per_element calculation using int32 arithmetic without a size_t cast, allowing potential buffer overflow when processing specially crafted EXR image files with large dimensions. This is the same overflow pattern previously fixed in CVE-2026-34589/34588/34544 but missed in this code path.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 3.2.0, < 3.2.8>= 3.3.0, < 3.3.10>= 3.4.0, < 3.4.10CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify OpenEXR installation and versionRun 'openexrversion' or check package manager (dpkg -l | grep openexr, rpm -qa | grep openexr)Affected if Version is >= 3.2.0 and < 3.2.8, OR >= 3.3.0 and < 3.3.10, OR >= 3.4.0 and < 3.4.10
-
Locate the vulnerable source fileFind internal_dwa_compressor.h in the source tree or installed headers (find /usr -name internal_dwa_compressor.h 2>/dev/null)Affected if File exists at expected path
-
Inspect the vulnerable code at line 1040Open internal_dwa_compressor.h and examine line 1040 for the multiplication width * bytes_per_elementAffected if The multiplication uses int32 (int) rather than size_t cast, indicating the vulnerability is present
-
Check if DWA compression support is builtCheck binary/library for DWA compressor linked in (ldd /path/to/libIex.so 2>/dev/null | grep -i openexr) or review build configurationAffected if OpenEXR with DWA support is in use and version falls in affected range
A system is affected if OpenEXR version is within any of the three vulnerable ranges AND the DWA compressor code path exists without the size_t cast fix.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped3.2.83.3.103.4.10
Upgrade OpenEXR to version 3.4.10, 3.3.10, or 3.2.8 (or later) which contain the fix. Alternatively, apply the size_t cast to the multiplication at line 1040 of internal_dwa_compressor.h.
OpenEXR 3.2.8, 3.3.10, or 3.4.10 (select based on current branch)
- Identify the current OpenEXR version in use by checking project dependencies or running pkg-config --modversion OpenEXR
- Determine which version branch is in use (3.2.x, 3.3.x, or 3.4.x)
- Upgrade to the corresponding fixed release: 3.2.8 for 3.2.x branches, 3.3.10 for 3.3.x branches, or 3.4.10 for 3.4.x branches
- Update the dependency in the project's build system (e.g., CMake, conan, vcpkg) to specify the minimum fixed version
- Rebuild the project to link against the upgraded OpenEXR library
- Verify the upgrade was successful by checking that the linked library version matches the target fixed version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,040.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40250 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40250 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data