CWE
189 190
Advisory Published
Updated

CVE-2007-1797: Integer Overflow

First published: Mon Apr 02 2007(Updated: )

Multiple integer overflows in ImageMagick before 6.3.3-5 allow remote attackers to execute arbitrary code via (1) a crafted DCM image, which results in a heap-based overflow in the ReadDCMImage function, or (2) the (a) colors or (b) comments field in a crafted XWD image, which results in a heap-based overflow in the ReadXWDImage function, different issues than CVE-2007-1667.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
ImageMagick=6.3.3.3
ImageMagick=6.3.0.4
ImageMagick=6.3.1.4
ImageMagick=6.3.1.3
ImageMagick=6.3.1.0
ImageMagick=6.3.2.8
ImageMagick=6.3.3.0
ImageMagick=6.3.0.8
ImageMagick=6.3.0.3
ImageMagick=6.3.2.1
ImageMagick=6.3.1.7
ImageMagick=6.3.1.6
ImageMagick=6.3.2.2
ImageMagick=6.3.2.7
ImageMagick=6.3.1.2.
ImageMagick=6.3.2.6
ImageMagick=6.3.2.4
ImageMagick=6.3.1.5
ImageMagick=6.3.1.1
ImageMagick=6.3.0.5
ImageMagick=6.3.0.0
ImageMagick=6.3.3.1
ImageMagick=6.3.0.2
ImageMagick=6.3.3.4
ImageMagick=6.3.2.3
ImageMagick=6.3.0.7
ImageMagick=6.3.2.0
ImageMagick=6.3.2.5
ImageMagick=6.3.3.2
ImageMagick=6.3.0.1

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

    CVE-2007-1797 has been classified as a high severity vulnerability due to the potential for remote code execution.

  • How do I fix CVE-2007-1797?

    To fix CVE-2007-1797, upgrade ImageMagick to a version later than 6.3.3-5 to mitigate the integer overflow vulnerabilities.

  • What types of images are affected by CVE-2007-1797?

    CVE-2007-1797 affects DCM and XWD images that could be crafted to exploit integer overflows in ImageMagick.

  • Who is affected by CVE-2007-1797?

    Users of ImageMagick versions before 6.3.3-5 are at risk from CVE-2007-1797.

  • What can happen if CVE-2007-1797 is exploited?

    Exploitation of CVE-2007-1797 can lead to arbitrary code execution on the affected system.

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