CVE-2004-0687 Memory corruption in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary code by tricking users into opening a malformed XPM image file in applications using libXpm.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2004-0687?

CVE-2004-0687 is a high-severity memory corruption vulnerability in Openbsd Openbsd, published on 24 Sep 2004. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Multiple stack-based buffer overflows in (1) xpmParseColors in parse.c, (2) ParseAndPutPixels in create.c, and (3) ParsePixels in parse.c for libXpm before 6.8.1 allow remote attackers to execute arbitrary code via a malformed XPM image file.

Which versions are affected by CVE-2004-0687?

It affects 4 products.

Products include Openbsd Openbsd, Suse Suse Linux, X.org X11r6, Xfree86 Project X11r6.

How do I fix CVE-2004-0687?

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-2004-0687 being exploited?

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

All Openbsd Openbsd vulnerabilities

Sources

Also known as GHSA-3r6w-5wg8-cf38.

Is CVE-2004-0687 in your software?

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

Check your SBOMs for free