Cloudanix VulnDB

CVE-2017-9112

Medium · 6.5

CVSS

6.5

EPSS

1.9%

Published

May 21, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Attacker creates a specially crafted OpenEXR file exploiting the getBits invalid read
  2. Malicious file is delivered via email, download, or shared storage
  3. Victim application or service opens or processes the file
  4. 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