CVE-2019-9956: Buffer Overflow

Published Mar 23, 2019
·
Updated

ImageMagick is vulnerable to a stack-based buffer overflow, caused by improper bounds checking by the PopHexPixel function in coders/ps.c. By persuading a victim to open a specially-crafted file, a remote attacker could overflow a buffer and execute arbitrary code, or cause a denial of service condtion on the system.

Other sources

In ImageMagick 7.0.8-35 Q16, there is a stack-based buffer overflow in the function PopHexPixel of coders/ps.c, which allows an attacker to cause a denial of service or code execution via a crafted image file.

— Launchpad

Affected Software

33 affected componentsFixes available
redhat/imagemagick 7.0.8<35
35
redhat/imagemagick 6.9.10<35
35
IBM Data Risk Manager<=2.0.6
ImageMagick ImageMagick=7.0.8-35-q16
Debian Debian Linux=9.0
debian/imagemagick
8:6.9.11.60+dfsg-1.3+deb11u48:6.9.11.60+dfsg-1.3+deb11u58:6.9.11.60+dfsg-1.6+deb12u28:6.9.11.60+dfsg-1.6+deb12u18:7.1.1.43+dfsg1-18:7.1.1.47+dfsg1-1
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick<7.0.8.38-r0
7.0.8.38-r0
alpine/imagemagick6<6.9.10.37-r0
6.9.10.37-r0
alpine/imagemagick6<6.9.10.37-r0
6.9.10.37-r0
alpine/imagemagick6<6.9.10.37-r0
6.9.10.37-r0
alpine/imagemagick6<6.9.10.37-r0
6.9.10.37-r0
alpine/imagemagick6<6.9.10.37-r0
6.9.10.37-r0
alpine/imagemagick6<6.9.10.37-r0
6.9.10.37-r0
alpine/imagemagick6<6.9.10.37-r0
6.9.10.37-r0
alpine/imagemagick6<6.9.10.39-r0
6.9.10.39-r0
alpine/imagemagick6<6.9.10.39-r0
6.9.10.39-r0
alpine/imagemagick6<6.9.10.39-r0
6.9.10.39-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ImageMagick 7.0.8 to a version that resolves this vulnerability.

    Fixed in 35
  2. Upgrade

    Upgrade redhat/ImageMagick 6.9.10 to a version that resolves this vulnerability.

    Fixed in 35
  3. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:6.9.11.60+dfsg-1.3+deb11u4Fixed in 8:6.9.11.60+dfsg-1.3+deb11u5Fixed in 8:6.9.11.60+dfsg-1.6+deb12u2Fixed in 8:6.9.11.60+dfsg-1.6+deb12u1Fixed in 8:7.1.1.43+dfsg1-1Fixed in 8:7.1.1.47+dfsg1-1

Event History

Mar 23, 2019
CVE Published
via MITRE·11:14 PM
Data Sourced
via MITRE·11:14 PM
Description
Mar 24, 2019
Data Sourced
via NVD·12:29 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·12:29 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for ImageMagick?

The vulnerability ID for ImageMagick is CVE-2019-9956.

2

What is the severity of CVE-2019-9956?

The severity of CVE-2019-9956 is high (8.8).

3

Which software versions are affected by CVE-2019-9956?

ImageMagick version 7.0.8-35 Q16 and IBM Data Risk Manager version up to 2.0.6 are affected by CVE-2019-9956.

4

How can I fix the CVE-2019-9956 vulnerability?

Apply the latest patches or updates provided by the software vendors to fix the CVE-2019-9956 vulnerability.

5

Where can I find more information about CVE-2019-9956?

You can find more information about CVE-2019-9956 on the MITRE CVE website, Ubuntu Security Notices, and NIST NVD.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203