CVE-2023-5841 OpenEXR Heap Overflow in Scanline Deep Data Parsing

Critical 9.1 Published Updated

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.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2023-5841?

It affects 1 product.

Linux distribution packages (40)
openexr AlmaLinux:9All versions3.1.1-2.el9_4.1
openexr AlmaLinux:9All versions3.1.1-2.el9_5.1
openexr-devel AlmaLinux:9All versions3.1.1-2.el9_4.1
openexr-devel AlmaLinux:9All versions3.1.1-2.el9_5.1
openexr-libs AlmaLinux:9All versions3.1.1-2.el9_4.1
openexr-libs AlmaLinux:9All versions3.1.1-2.el9_5.1
openexr Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_4.1
openexr Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_5.1
openexr-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_4.1
openexr-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_5.1
openexr-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_4.1
openexr-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_5.1
openexr-libs Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_4.1
openexr-libs Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_5.1
openexr-libs-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_4.1
openexr-libs-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.1.1-2.el9_5.1
openexr-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_4.1
openexr-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_5.1
openexr-debugsource Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_4.1
openexr-debugsource Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_5.1
openexr-devel Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_4.1
openexr-devel Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_5.1
openexr-libs-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_4.1
openexr-libs-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:3.1.1-2.el9_5.1
openexr Red Hat:rhel_e4s:9.0::appstreamAll versions0:3.1.1-2.el9_0.1
openexr-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:3.1.1-2.el9_0.1
openexr-debugsource Red Hat:rhel_e4s:9.0::appstreamAll versions0:3.1.1-2.el9_0.1
openexr-libs Red Hat:rhel_e4s:9.0::appstreamAll versions0:3.1.1-2.el9_0.1
openexr-libs-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:3.1.1-2.el9_0.1
openexr Red Hat:rhel_eus:9.2::appstreamAll versions0:3.1.1-2.el9_2.1
openexr-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:3.1.1-2.el9_2.1
openexr-debugsource Red Hat:rhel_eus:9.2::appstreamAll versions0:3.1.1-2.el9_2.1
openexr-libs Red Hat:rhel_eus:9.2::appstreamAll versions0:3.1.1-2.el9_2.1
openexr-libs-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:3.1.1-2.el9_2.1
openexr-debuginfo Red Hat:rhel_eus:9.2::crbAll versions0:3.1.1-2.el9_2.1
openexr-debugsource Red Hat:rhel_eus:9.2::crbAll versions0:3.1.1-2.el9_2.1
openexr-devel Red Hat:rhel_eus:9.2::crbAll versions0:3.1.1-2.el9_2.1
openexr-libs-debuginfo Red Hat:rhel_eus:9.2::crbAll versions0:3.1.1-2.el9_2.1
openexr Rocky Linux:9All versions0:3.1.1-2.el9_4.1
openexr Rocky Linux:9All versions0: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.

All Openexr Openexr vulnerabilities

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.

Is CVE-2023-5841 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free