CVE-2023-34475 Use after free in ImageMagick

Medium 5.5 Published Updated

A heap use-after-free in ImageMagick allows attackers to crash applications via crafted files, causing 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-34475?

CVE-2023-34475 is a medium-severity use after free vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 16 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 use after free issue was discovered in ImageMagick's ReplaceXmpValue() function in MagickCore/profile.c. An attacker could trick user to open a specially crafted file to convert, triggering an heap-use-after-free write error, allowing an application to crash, resulting in a denial of service.

Weakness: CWE-416

Which versions are affected by CVE-2023-34475?

It affects 3 products.

Products include Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Imagemagick Imagemagick.

How do I fix CVE-2023-34475?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2023-34475 being exploited?

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

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as GHSA-mcff-wj2q-69j3, JLSEC-2026-910.

Is CVE-2023-34475 in your software?

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

Check your SBOMs for free