CVE-2021-3598: Buffer Overflow
A heap-buffer overflow was found in the readChars function of OpenEXR in versions before 3.0.3. An attacker could use this flaw to execute arbitrary code with the permissions of the user running the application compiled against OpenEXR.
Upstream issue:
https://github.com/AcademySoftwareFoundation/openexr/issues/1033
Upstream patch:
https://github.com/AcademySoftwareFoundation/openexr/pull/1037/commits/b0eeb890016a8c9dc0830f0b7be5a9c52cb829d4
Other sources
There's a flaw in OpenEXR's ImfDeepScanLineInputFile functionality in versions prior to 3.0.5. An attacker who is able to submit a crafted file to an application linked with OpenEXR could cause an out-of-bounds read. The greatest risk from this flaw is to application availability.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/openexrto a version that resolves this vulnerability.Fixed in 2.2.1-4.1+deb10u2Fixed in 2.5.4-2+deb11u1Fixed in 3.1.5-5Fixed in 3.1.5-5.1 - Upgrade
Upgrade
redhat/OpenEXRto a version that resolves this vulnerability.Fixed in 3.0.5 - Upgrade
Upgrade
OpenEXRto a version that resolves this vulnerability.Fixed in 3.0.5Patch upstream patch - Compensating control
Ensure applications linked with OpenEXR only process trusted OpenEXR files, since an attacker who can submit a crafted file to an application using OpenEXR could trigger an out-of-bounds read (heap-buffer overflow in readChars / ImfDeepScanLineInputFile).
- Compensating control
Mitigate greatest risk to application availability by restricting or rate-limiting untrusted file ingestion paths that can reach OpenEXR parsers.
Event History
Frequently Asked Questions
What is CVE-2021-3598?
CVE-2021-3598 is a flaw in OpenEXR's ImfDeepScanLineInputFile functionality in versions prior to 3.0.5 that could cause an out-of-bounds read.
What is the severity of CVE-2021-3598?
The severity of CVE-2021-3598 is high with a severity value of 5.5.
How can an attacker exploit CVE-2021-3598?
An attacker can exploit CVE-2021-3598 by submitting a crafted file to an application linked with OpenEXR.
Which software versions are affected by CVE-2021-3598?
Versions prior to 3.0.5 of OpenEXR are affected by CVE-2021-3598.
How can I fix CVE-2021-3598?
To fix CVE-2021-3598, update OpenEXR to version 3.0.5 or later.