CVE-2023-3745 Imagemagick: heap-buffer-overflow in pushcharpixel() in quantum-private.h

Medium 5.5 Published Updated

A heap-based buffer overflow in ImageMagick allows local attackers to cause a denial of service by tricking users into opening crafted files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-3745?

CVE-2023-3745 is a medium-severity memory corruption vulnerability in Imagemagick Imagemagick, published on 24 Jul 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A heap-based buffer overflow issue was found in ImageMagick's PushCharPixel() function in quantum-private.h. This issue may allow a local attacker to trick the user into opening a specially crafted file, triggering an out-of-bounds read error and allowing an application to crash, resulting in a denial of service.

Weakness: CWE-787, CWE-125

Which versions are affected by CVE-2023-3745?

It affects 1 product.

Linux distribution packages (5)
ImageMagick SUSE:Linux Enterprise Server 12 SP5All versions6.8.8.1-71.195.1
ImageMagick SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions6.8.8.1-71.195.1
ImageMagick SUSE:Linux Enterprise Software Development Kit 12 SP5All versions6.8.8.1-71.195.1
ImageMagick SUSE:Linux Enterprise Workstation Extension 12 SP5All versions6.8.8.1-71.195.1
ImageMagick openSUSE:Leap 15.4All versions7.0.7.34-150200.10.51.1

Products include Imagemagick Imagemagick.

How do I fix CVE-2023-3745?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-3745 being exploited?

There is no known exploitation of CVE-2023-3745 in the wild and no public exploit code.

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-3745, GHSA-fw7q-prfm-977f, SUSE-SU-2023:3186-1, SUSE-SU-2023:3357-1.

Is CVE-2023-3745 in your software?

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

Check your SBOMs for free