CVE-2017-9112: OpenEXR OpenEXR Invalid Read Vulnerability

MODERATE
Advisory Identifier: GHSA-8m57-j273-2qg9
CVSS 6.5
Published
Advisory Summary

CVE-2017-9112 is a MODERATE (CVSS 6.5) openexr invalid read vulnerability (General Security Weakness) affecting OpenEXR libraries in the PyPI ecosystem. The issue involves openexr invalid read. Remediation is available by upgrading affected packages to version 2.2.1.

CVE-2017-9112 at a Glance

CVE Identifier CVE-2017-9112
GHSA Identifier GHSA-8m57-j273-2qg9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification General Security Weakness
Affected Product OpenEXR
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2017-9112

To remediate this vulnerability, upgrade all affected OpenEXR dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

OpenEXR fixed: 2.2.1
pip install OpenEXR>=2.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show OpenEXR

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2017-9112, inspect your installed packages using pip:

pip show OpenEXR

Analyze the terminal output to locate any version of OpenEXR in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), your application is affected.

Note: The pip show OpenEXR command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In OpenEXR, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In OpenEXR 2.2.0, an invalid read of size 1 in the getBits function in ImfHuf.cpp could cause the application to crash.

CVE-2017-9112 Affected OpenEXR Versions

1 component(s)
Fixed Versions:
2.2.1
Product / Package Ecosystem Affected Versions Fixed Version
OpenEXR
PyPI
< 2.2.1
2.2.1

References

Frequently Asked Questions

What is CVE-2017-9112?
CVE-2017-9112 is a security vulnerability in OpenEXR involving OpenEXR invalid read under General Security Weakness.
Which OpenEXR versions are affected?
Affected versions include releases prior to 2.2.1 across affected packages: OpenEXR.
What version fixes CVE-2017-9112?
Upgrading to 2.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is OpenEXR affected?
Yes, OpenEXR is affected in releases prior to 2.2.1. Upgrade your dependency to 2.2.1 or later.
What is the CVSS score of CVE-2017-9112?
CVE-2017-9112 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2017-9112?
CVE-2017-9112 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2017-9112?
Run the dependency tree command: 'pip show OpenEXR'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8m57-j273-2qg9",
  "modified" : "2025-04-22T18:45:44Z",
  "published" : "2022-05-13T01:17:50Z",
  "aliases" : [ "CVE-2017-9112" ],
  "summary" : "OpenEXR invalid read",
  "details" : "In OpenEXR 2.2.0, an invalid read of size 1 in the getBits function in ImfHuf.cpp could cause the application to crash.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "OpenEXR"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-9112"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openexr/openexr/issues/232"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openexr/openexr/pull/233"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AcademySoftwareFoundation/openexr"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openexr/openexr/releases/tag/v2.2.1"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2020/08/msg00056.html"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/4148-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2017/05/12/5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-22T18:45:44Z",
    "nvd_published_at" : "2017-05-21T18:29:00Z"
  }
}