CVE-2017-9111: OpenEXR OpenEXR Invalid Write Vulnerability
HIGHCVE-2017-9111 is a HIGH (CVSS 8.8) openexr invalid write vulnerability (CWE-787: Out-of-bounds Write) affecting OpenEXR libraries in the PyPI ecosystem. The issue involves openexr invalid write. Remediation is available by upgrading affected packages to version 2.2.1.
CVE-2017-9111 at a Glance
Security Impact
CVSS: 8.8
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:H/I:H/A:H).
How to Fix CVE-2017-9111
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.
pip install OpenEXR>=2.2.1
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-9111, 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 CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. 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
CVE-2017-9111 Affected OpenEXR Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
OpenEXR
|
PyPI |
< 2.2.1
|
2.2.1
|
References
Frequently Asked Questions
What is CVE-2017-9111?
Which OpenEXR versions are affected?
What version fixes CVE-2017-9111?
Is OpenEXR affected?
What is the CVSS score of CVE-2017-9111?
What CWE is associated with CVE-2017-9111?
How can I check PyPI dependencies for CVE-2017-9111?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qxh9-r8xw-7v99",
"modified" : "2025-04-22T18:45:30Z",
"published" : "2022-05-13T01:17:50Z",
"aliases" : [ "CVE-2017-9111" ],
"summary" : "OpenEXR invalid write",
"details" : "In OpenEXR 2.2.0, an invalid write of size 8 in the storeSSE function in ImfOptimizedPixelReading.h could cause the application to crash or execute arbitrary code.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/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-9111"
}, {
"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" : "https://usn.ubuntu.com/4339-1"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2020/dsa-4755"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00060.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00000.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2017/05/12/5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-787" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-22T18:45:29Z",
"nvd_published_at" : "2017-05-21T18:29:00Z"
}
}