CVE-2007-4987 Integer overflow in n/a

Critical 9.3 Published Updated

An off-by-one error in ImageMagick allows attackers to execute arbitrary code via a crafted image file, requiring user interaction to open the file.

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-2007-4987?

CVE-2007-4987 is a critical vulnerability in Imagemagick Imagemagick, published on 24 Sep 2007. 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

Off-by-one error in the ReadBlobString function in blob.c in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted image file, which triggers the writing of a '\0' character to an out-of-bounds address.

Weakness: CWE-189

Which versions are affected by CVE-2007-4987?

It affects 1 product.

Products include Imagemagick Imagemagick.

How do I fix CVE-2007-4987?

Upgrade to a fixed version.

Is CVE-2007-4987 being exploited?

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

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as DEBIAN-CVE-2007-4987, GHSA-8r4q-vv4v-f978.

Is CVE-2007-4987 in your software?

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

Check your SBOMs for free