CWE
NVD-CWE-Other 119
Advisory Published
Updated

CVE-2004-0981: Buffer Overflow

First published: Fri Nov 19 2004(Updated: )

Buffer overflow in the EXIF parsing routine in ImageMagick before 6.1.0 allows remote attackers to execute arbitrary code via a certain image file.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
ubuntu/graphicsmagick<1.1.7-8
1.1.7-8
ubuntu/graphicsmagick<1.1.7-8
1.1.7-8
ubuntu/imagemagick<6.2.4.5-0.6ubuntu0.6
6.2.4.5-0.6ubuntu0.6
ubuntu/imagemagick<6.2.4.5.dfsg1-0.10ubuntu0.3
6.2.4.5.dfsg1-0.10ubuntu0.3
ubuntu/imagemagick<6.2.4.5.dfsg1-0.14ubuntu0.1
6.2.4.5.dfsg1-0.14ubuntu0.1
debian/graphicsmagick
1.4+really1.3.36+hg16481-2+deb11u1
1.4+really1.3.40-4
1.4+really1.3.43-1
debian/imagemagick
8:6.9.11.60+dfsg-1.3+deb11u3
8:6.9.11.60+dfsg-1.6+deb12u1
8:6.9.13.12+dfsg1-1
ImageMagick ImageMagick=5.3.3
ImageMagick ImageMagick=5.4.3
ImageMagick ImageMagick=5.4.4.5
ImageMagick ImageMagick=5.4.7
ImageMagick ImageMagick=5.4.8
ImageMagick ImageMagick=5.4.8.2.1.1.0
ImageMagick ImageMagick=5.5.3.2.1.2.0
ImageMagick ImageMagick=5.5.6.0_2003-04-09
ImageMagick ImageMagick=5.5.7
ImageMagick ImageMagick=6.0
ImageMagick ImageMagick=6.0.1
ImageMagick ImageMagick=6.0.3
ImageMagick ImageMagick=6.0.4
ImageMagick ImageMagick=6.0.5
ImageMagick ImageMagick=6.0.6
ImageMagick ImageMagick=6.0.7
ImageMagick ImageMagick=6.0.8
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Debian GNU/Linux=3.0
Gentoo Linux
SUSE Linux=8.0
SUSE Linux=8.1
SUSE Linux=8.2
SUSE Linux=9.0
SUSE Linux=9.0
SUSE Linux=9.1
SUSE Linux=9.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2004-0981?

    CVE-2004-0981 is considered to have a critical severity due to the potential for remote code execution.

  • How do I fix CVE-2004-0981?

    To fix CVE-2004-0981, update ImageMagick to version 6.1.0 or later.

  • Which versions of ImageMagick are affected by CVE-2004-0981?

    Versions of ImageMagick prior to 6.1.0 are affected by CVE-2004-0981.

  • What types of attacks can exploit CVE-2004-0981?

    CVE-2004-0981 can be exploited via specially crafted image files that trigger a buffer overflow.

  • Is ImageMagick the only software affected by CVE-2004-0981?

    No, GraphicsMagick is also affected by CVE-2004-0981 if using vulnerable versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203