CVE-2023-5841 OpenEXR Heap Overflow in Scanline Deep Data Parsing
A heap-based buffer overflow in OpenEXR allows attackers to execute arbitrary code or cause denial of service via malicious deep scanline data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-5841?
CVE-2023-5841 is a critical memory corruption vulnerability in Openexr Openexr, published on 1 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Due to a failure in validating the number of scanline samples of a OpenEXR file containing deep scanline data, Academy Software Foundation OpenEX image parsing library version 3.2.1 and prior is susceptible to a heap-based buffer overflow vulnerability. This issue was resolved as of versions v3.2.2 and v3.1.12 of the affected library.
Which versions are affected by CVE-2023-5841?
It affects 1 product.
Linux distribution packages (40)
openexr AlmaLinux:9 | All versions | 3.1.1-2.el9_4.1 |
openexr AlmaLinux:9 | All versions | 3.1.1-2.el9_5.1 |
openexr-devel AlmaLinux:9 | All versions | 3.1.1-2.el9_4.1 |
openexr-devel AlmaLinux:9 | All versions | 3.1.1-2.el9_5.1 |
openexr-libs AlmaLinux:9 | All versions | 3.1.1-2.el9_4.1 |
openexr-libs AlmaLinux:9 | All versions | 3.1.1-2.el9_5.1 |
openexr Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_4.1 |
openexr Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_5.1 |
openexr-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_4.1 |
openexr-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_5.1 |
openexr-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_4.1 |
openexr-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_5.1 |
openexr-libs Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_4.1 |
openexr-libs Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_5.1 |
openexr-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_4.1 |
openexr-libs-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.1.1-2.el9_5.1 |
openexr-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_4.1 |
openexr-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_5.1 |
openexr-debugsource Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_4.1 |
openexr-debugsource Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_5.1 |
openexr-devel Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_4.1 |
openexr-devel Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_5.1 |
openexr-libs-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_4.1 |
openexr-libs-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:3.1.1-2.el9_5.1 |
openexr Red Hat:rhel_e4s:9.0::appstream | All versions | 0:3.1.1-2.el9_0.1 |
openexr-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:3.1.1-2.el9_0.1 |
openexr-debugsource Red Hat:rhel_e4s:9.0::appstream | All versions | 0:3.1.1-2.el9_0.1 |
openexr-libs Red Hat:rhel_e4s:9.0::appstream | All versions | 0:3.1.1-2.el9_0.1 |
openexr-libs-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:3.1.1-2.el9_0.1 |
openexr Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.1.1-2.el9_2.1 |
openexr-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.1.1-2.el9_2.1 |
openexr-debugsource Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.1.1-2.el9_2.1 |
openexr-libs Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.1.1-2.el9_2.1 |
openexr-libs-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:3.1.1-2.el9_2.1 |
openexr-debuginfo Red Hat:rhel_eus:9.2::crb | All versions | 0:3.1.1-2.el9_2.1 |
openexr-debugsource Red Hat:rhel_eus:9.2::crb | All versions | 0:3.1.1-2.el9_2.1 |
openexr-devel Red Hat:rhel_eus:9.2::crb | All versions | 0:3.1.1-2.el9_2.1 |
openexr-libs-debuginfo Red Hat:rhel_eus:9.2::crb | All versions | 0:3.1.1-2.el9_2.1 |
openexr Rocky Linux:9 | All versions | 0:3.1.1-2.el9_4.1 |
openexr Rocky Linux:9 | All versions | 0:3.1.1-2.el9_4.1 |
Products include Openexr Openexr.
How do I fix CVE-2023-5841?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-5841 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-5841 exists.
Other vulnerabilities in Openexr Openexr
- CVE-2026-41142 OpenEXR is Vulnerable to Integer overflow in ImageChannel::resize leads to heap OOB write via OpenEXRUtil public API
- CVE-2026-42216 OpenEXR: Out-of-bounds read in `IDManifest::init()` during prefix expansion
- CVE-2017-9111 OpenEXR invalid write
- CVE-2017-9113 Memory corruption in n/a
- CVE-2017-9115 Memory corruption in n/a
Sources
Also known as ALSA-2024:8800, ALSA-2024:9548, AZL-62324, CLSA-2025-1749743322, DEBIAN-CVE-2023-5841, GHSA-gxmr-rxpv-c8fq and 14 more.