CVE-2026-42217

OpenEXR: Shift exponent overflow in `readVariableLengthInteger()` (`ImfIDManifest.cpp`)

Published May 7, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. From versions 3.0.0 to before 3.2.9, 3.3.0 to before 3.3.11, and 3.4.0 to before 3.4.11, readVariableLengthInteger() decodes a variable-length integer from untrusted EXR input without bounding the shift count. After enough continuation bytes, the code executes a left shift by 70 on a 64-bit value, which is undefined behavior. This issue has been patched in versions 3.2.9, 3.3.11, and 3.4.11.

Analysis

AI-generated

Technical impact

OpenEXR’s readVariableLengthInteger() decodes an untrusted EXR file without bounding the shift count. After processing multiple continuation bytes, the code performs a left shift by 70 on a 64‑bit value, a shift count that is larger than the width of the operand and triggers undefined behavior. Depending on how the runtime handles this UB, the application may crash, corrupt data in memory, or exhibit unpredictable behavior, potentially compromising confidentiality, integrity, or availability of the process reading the file.

Affected Systems

The vulnerability exists in the Academy Software Foundation’s OpenEXR library in versions 3.0.0 through 3.2.8, 3.3.0 through 3.3.10, and 3.4.0 through 3.4.10. The issue was addressed in 3.2.9, 3.3.11, and 3.4.11, which contain the necessary bounds checks for the shift operation.

Risk and Exploitability

The CVSS score of 6.3 indicates a medium to high severity. EPSS score of <1% indicates a low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog, which suggests a lower likelihood of widespread exploitation at present. However, the flaw can be triggered whenever an application loads an EXR file from an untrusted source, making it potentially exploitable in contexts where such files are accepted. Attackers would need to craft a malicious EXR file that forces the shift overflow; the impact could be a crash or memory corruption rather than immediate code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEXR to version 3.2.9 or newer (3.3.11 or 3.4.11) to apply the fix that bounds the shift count
  • If an upgrade is temporarily unavailable, restrict or validate all EXR files to avoid processing untrusted files from external sources
  • Monitor the application for signs of crashes or memory corruption that could indicate an attempt to trigger the undefined behavior

Generated by OpenCVE AI on May 16, 2026 at 01:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Openexr
Openexr openexr
CPEs cpe:2.3:a:openexr:openexr:*:*:*:*:*:*:*:*
Vendors & Products Openexr
Openexr openexr
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Academysoftwarefoundation
Academysoftwarefoundation openexr
Vendors & Products Academysoftwarefoundation
Academysoftwarefoundation openexr
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. From versions 3.0.0 to before 3.2.9, 3.3.0 to before 3.3.11, and 3.4.0 to before 3.4.11, readVariableLengthInteger() decodes a variable-length integer from untrusted EXR input without bounding the shift count. After enough continuation bytes, the code executes a left shift by 70 on a 64-bit value, which is undefined behavior. This issue has been patched in versions 3.2.9, 3.3.11, and 3.4.11.
Title OpenEXR: Shift exponent overflow in `readVariableLengthInteger()` (`ImfIDManifest.cpp`)
Weaknesses CWE-190
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1335

    Incorrect Bitwise Shift of Integer

  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 7, 2026, 12:08 PM
Reserved
Apr 25, 2026, 5:04 AM
Status
Analyzed
Published
May 7, 2026, 4:16 AM
Modified
Oct 26, 2026, 7:10 PM
Severity
Moderate
Public date
May 7, 2026, 4:04 AM