CVE-2017-9112
Medium · 6.5CVSS
6.5
EPSS
1.9%
Published
May 21, 2017
CISA due date
—
Cloudanix analysis
A bug in software that reads special image files can make programs stop working when they try to open certain bad files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Invalid read of size 1 in the getBits function in ImfHuf.cpp triggers a crash during OpenEXR file parsing.
Why it matters to the business
Image processing applications and pipelines that handle OpenEXR files can be disrupted by unexpected crashes when encountering malformed input, affecting content creation and rendering workflows across many distributions.
How an attack unfolds
An attacker crafts a malicious OpenEXR image file that triggers the invalid memory read when the getBits function processes it, causing the target application to crash upon opening or rendering the file.
How to fix it
Upgrade OpenEXR to fixed versions including academysoftwarefoundation/openexr GIT dcaf5fdb4d1244d8e60a58832cfe9c54734a2257, Debian packages 4.13.13-1, and the listed Ubuntu package updates such as 3.13.0-162.212, 4.4.0-1016.16, 4.4.0-119.143, and 4.13.0-1014.17 depending on the distribution.
How to confirm the fix worked
Verify installed package versions against the fixed releases, attempt to open a known-good OpenEXR file after upgrade, and confirm absence of crashes on boundary test cases.
Typical attack path
- Attacker creates a specially crafted OpenEXR file exploiting the getBits invalid read
- Malicious file is delivered via email, download, or shared storage
- Victim application or service opens or processes the file
- getBits function performs invalid read leading to crash
How to detect it
Review application crash logs and core dumps for references to ImfHuf.cpp or getBits during OpenEXR parsing; correlate with file access timestamps of suspect .exr files.
- ImfHuf.cpp
- getBits
What your security team should do
- Prioritize updating OpenEXR packages on all affected Linux systems and development environments
- Scan for and replace any remaining vulnerable OpenEXR 2.2.0 installations
- Implement file-type validation and sandboxing for image processing pipelines handling OpenEXR
- Monitor application crash logs for recurring ImfHuf-related faults
The record
In OpenEXR 2.2.0, an invalid read of size 1 in the getBits function in ImfHuf.cpp could cause the application to crash.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | openexr | 0 | 2.2.1 |
| Debian:11 | openexr | 0 | 2.2.0-11.1 |
| Debian:12 | openexr | 0 | 2.2.0-11.1 |
| Debian:13 | openexr | 0 | 2.2.0-11.1 |
| Debian:14 | openexr | 0 | 2.2.0-11.1 |
| Debian:7 | openexr | 0 | 1.6.1-6+deb7u1 |
| Debian:9 | openexr | 0 | 2.2.0-11+deb9u1 |
| Mageia:5 | OpenEXR | 0 | 2.2.0-4.1.mga5 |
| SUSE:Linux Enterprise Desktop 12 SP4 | openexr | 0 | 2.1.0-6.10.1 |
| SUSE:Linux Enterprise Server 12 SP4 | openexr | 0 | 2.1.0-6.10.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | openexr | 0 | 2.1.0-6.10.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP4 | openexr | 0 | 2.1.0-6.10.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP4 | openexr | 0 | 2.1.0-6.10.1 |
| Ubuntu:16.04:LTS | openexr | 0 | 2.2.0-10ubuntu2.1 |
| Ubuntu:18.04:LTS | openexr | 0 | 2.2.0-11.1ubuntu1 |
| Ubuntu:18.04:LTS | openexr | 0 | 2.2.0-11.1ubuntu1.1 |
Related vulnerabilities
- CVE-2026-27622 OpenEXR provides the specification and reference implementation of the EXR file format… Also affects openexr
- GHSA-cr4v-6jm6-4963 OpenEXR's CompositeDeepScanLine integer-overflow leads to heap OOB write Also affects openexr
- CVE-2025-48074 OpenEXR Out-Of-Memory via Unbounded File Header Values Also affects openexr
- CVE-2017-9111 In OpenEXR 2.2.0, an invalid write of size 8 in the storeSSE function in… Also affects openexr
- CVE-2024-31047 An issue in Academy Software Foundation openexr v.3.2.3 and before allows a local… Also affects openexr
- CVE-2017-14988 Header::readfrom in IlmImf/ImfHeader.cpp in OpenEXR 2.2.0 allows remote attackers to… Also affects openexr
- CVE-2017-12596 In OpenEXR 2.2.0, a crafted image causes a heap-based buffer over-read in the hufDecode… Also affects openexr
- CVE-2017-9114 In OpenEXR 2.2.0, an invalid read of size 1 in the refill function in ImfFastHuf.cpp… Also affects openexr