CVE-2021-3598: Buffer Overflow

Published Jun 11, 2021
·
Updated

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

6 affected componentsFixes available
debian/openexr<=2.2.1-4.1+deb10u1
2.2.1-4.1+deb10u22.5.4-2+deb11u13.1.5-53.1.5-5.1
redhat/OpenEXR<3.0.5
3.0.5
OpenEXR OpenEXR<3.0.5
redhat Enterprise Linux=8.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openexr to 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
  2. Upgrade

    Upgrade redhat/OpenEXR to a version that resolves this vulnerability.

    Fixed in 3.0.5
  3. Upgrade

    Upgrade OpenEXR to a version that resolves this vulnerability.

    Fixed in 3.0.5Patch upstream patch
  4. 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).

  5. Compensating control

    Mitigate greatest risk to application availability by restricting or rate-limiting untrusted file ingestion paths that can reach OpenEXR parsers.

Event History

Jun 29, 2021
Data Sourced
12:33 PM
SeverityAffected Software
Jul 6, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

What is the severity of CVE-2021-3598?

The severity of CVE-2021-3598 is high with a severity value of 5.5.

3

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.

4

Which software versions are affected by CVE-2021-3598?

Versions prior to 3.0.5 of OpenEXR are affected by CVE-2021-3598.

5

How can I fix CVE-2021-3598?

To fix CVE-2021-3598, update OpenEXR to version 3.0.5 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203