CVE-2023-2157 Memory corruption in ImageMagick

Medium 5.5 Published Updated

A heap-based buffer overflow in ImageMagick allows attackers to crash the application, requiring a patch to prevent denial of service.

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-2157?

CVE-2023-2157 is a medium-severity memory corruption vulnerability in Imagemagick Imagemagick, published on 6 Jun 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 vulnerability was found in the ImageMagick package that can lead to the application crashing.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2023-2157?

It affects 1 product.

Linux distribution packages (1)
ImageMagick openSUSE:TumbleweedAll versions7.1.1.10-1.1

Products include Imagemagick Imagemagick.

How do I fix CVE-2023-2157?

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-2157 being exploited?

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

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-2157, GHSA-336m-6jwp-8932, JLSEC-2026-903, OESA-2023-1330, OESA-2023-1331, OESA-2023-1332 and 2 more.

Is CVE-2023-2157 in your software?

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

Check your SBOMs for free