Heap-based buffer overflow in OpenEXR - CVE-2023-5841

 

Heap-based buffer overflow in OpenEXR - CVE-2023-5841

Published: February 7, 2024 / Updated: February 15, 2024


Vulnerability identifier: #VU86235
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-5841
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when validating the number of scanline samples of a OpenEXR file containing deep scanline data. A remote attacker can pass specially crafted file to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

OpenEXR
Amazon Linux AMI
visionOS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
tvOS
openEuler
Anolis OS
Fedora
macOS
iPadOS
Apple iOS
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
OpenEXR (Red Hat package)
openexr
OpenEXR-debuginfo
OpenEXR-libs
OpenEXR-devel
OpenEXR-debugsource
OpenEXR
OpenEXR-doc
mingw-openexr

How to mitigate CVE-2023-5841

Install update from vendor's website.

OpenEXR - addressed in versions 3.1.12, 3.2.2
visionOS - update to 2.0
tvOS - update to 18.0
OpenEXR (Red Hat package) - addressed in versions 3.1.1-2.el9_0.1, 3.1.1-2.el9_2.1, 3.1.1-2.el9_4.1, 3.1.1-2.el9_5.1
openexr - update to 3.1.5-1
OpenEXR-debuginfo - update to 3.1.5-2
OpenEXR-libs - update to 3.1.5-2
OpenEXR-devel - update to 3.1.5-2
OpenEXR-debugsource - update to 3.1.5-2
OpenEXR - update to 3.1.5-2
OpenEXR-doc - update to 3.1.6-3
OpenEXR - update to 3.1.6-3
OpenEXR-devel - update to 3.1.6-3
OpenEXR-libs - update to 3.1.6-3
mingw-openexr - addressed in versions 3.1.10-4.fc38, 3.1.10-4.fc39
openexr - update to 3.1.10-5.fc40
macOS - update to 15.0 24A335
iPadOS - update to 18.0 22A3354
Apple iOS - update to 18.0 22A3354

External References

Related Security Bulletins