Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2004-0802: Buffer overflow in the BMP loader in imlib2 before 1.1.2 allows remote attackers to execute arbitrary code via

45
This month
MEDIUM 5.1WATCHLISTDOWNGRADEDOWNGRADEDOWNGRADE

CVE-2004-0802 is a medium-severity flaw (CVSS 5.1) affecting imlib, imlib2, imagemagick. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

Buffer overflow in the BMP loader in imlib2 before 1.1.2 allows remote attackers to execute arbitrary code via a specially-crafted BMP image, a different vulnerability than CVE-2004-0817.

Why this priority

  • On your watchlist

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score5.1 (Medium)
EPSS exploit chance3.4% (top 11%)
CISA exploited listNo
Published2004-12-31
Last modified2026-06-16
Publisher (CNA): MITRE · Vendor: conectiva · enlightenment · imagemagick · mandrakesoft · sun

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

enlightenment imlib DOWNGRADE
Affected: 1.9 · 1.9.1 · 1.9.2 · 1.9.3 · 1.9.4 · 1.9.5 · 1.9.6 · 1.9.7
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.9
1. Check installed version
apt-cache policy imlib || rpm -q imlib || imlib --version
2. No fixed release: DOWNGRADE to a release before 1.9 (Debian / Ubuntu)
apt-cache madison imlib sudo apt install imlib=<VERSION_BEFORE_1.9> sudo apt-mark hold imlib
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list imlib sudo dnf downgrade imlib-<VERSION_BEFORE_1.9> sudo dnf versionlock add imlib
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
enlightenment imlib2 DOWNGRADE
Affected: 1.0 · 1.0.1 · 1.0.2 · 1.0.3 · 1.0.4 · 1.0.5 · 1.1 · 1.1.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.0
1. Check installed version
apt-cache policy imlib2 || rpm -q imlib2 || imlib2 --version
2. No fixed release: DOWNGRADE to a release before 1.0 (Debian / Ubuntu)
apt-cache madison imlib2 sudo apt install imlib2=<VERSION_BEFORE_1.0> sudo apt-mark hold imlib2
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list imlib2 sudo dnf downgrade imlib2-<VERSION_BEFORE_1.0> sudo dnf versionlock add imlib2
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
imagemagick imagemagick DOWNGRADE
Affected: 5.3.3 · 5.4.3 · 5.4.4.5 · 5.4.7 · 5.4.8 · 5.4.8.2.1.1.0 · 5.5.3.2.1.2.0 · 5.5.6.0_2003-04-09
Fixed in: no fixed release known
Safe to downgrade to: a release before 5.3.3
1. Check installed version
apt-cache policy imagemagick || rpm -q imagemagick || imagemagick --version
2. No fixed release: DOWNGRADE to a release before 5.3.3 (Debian / Ubuntu)
apt-cache madison imagemagick sudo apt install imagemagick=<VERSION_BEFORE_5.3.3> sudo apt-mark hold imagemagick
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list imagemagick sudo dnf downgrade imagemagick-<VERSION_BEFORE_5.3.3> sudo dnf versionlock add imagemagick
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
sun java desktop system DOWNGRADE
Affected: 2.0 · 2003
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.0
1. Check installed version
apt-cache policy java-desktop-system || rpm -q java-desktop-system || java-desktop-system --version
2. No fixed release: DOWNGRADE to a release before 2.0 (Debian / Ubuntu)
apt-cache madison java-desktop-system sudo apt install java-desktop-system=<VERSION_BEFORE_2.0> sudo apt-mark hold java-desktop-system
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list java-desktop-system sudo dnf downgrade java-desktop-system-<VERSION_BEFORE_2.0> sudo dnf versionlock add java-desktop-system
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
conectiva linux MITIGATE
Affected: 9.0 · 10.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
mandrakesoft mandrake linux MITIGATE
Affected: 9.2 · 10.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.2
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2004-0802?

imlib: downgrade or apply the listed mitigation; imlib2: downgrade or apply the listed mitigation; imagemagick: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2004-0802 being exploited?

CVE-2004-0802 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2004-0802 affect?

CVE-2004-0802 affects imlib, imlib2, imagemagick. Severity is medium (CVSS 5.1). Buffer overflow in the BMP loader in imlib2 before 1.1.2 allows remote attackers to execute arbitrary code via a specially-crafted BMP image, a different vulnerability than CVE-2004-0817.

How urgent is CVE-2004-0802?

Priority 45/100. On your watchlist

Software pages

Java vulnerabilities · ImageMagick vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.