CVE-2018-16749: Null Pointer Dereference

Published Sep 9, 2018
·
Updated

ImageMagick is vulnerable to a denial of service, caused by a missing NULL check in the ReadOneJNGImage function in coders/png.c. By persuading a victim to open a specially-crafted file, a remote attacker could exploit this vulnerability to cause a denial of service condition.

Other sources

In ImageMagick 7.0.7-29 and earlier, a missing NULL check in ReadOneJNGImage in coders/png.c allows an attacker to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file.

— Launchpad

Affected Software

19 affected componentsFixes available
IBM Data Risk Manager<=2.0.6
ImageMagick ImageMagick<6.9.9-42
ImageMagick ImageMagick>=7.0.0-0<=7.0.7-29
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
debian/imagemagick
8:6.9.11.60+dfsg-1.3+deb11u48:6.9.11.60+dfsg-1.3+deb11u98:6.9.11.60+dfsg-1.6+deb12u58:6.9.11.60+dfsg-1.6+deb12u68:7.1.1.43+dfsg1-1+deb13u48:7.1.1.43+dfsg1-1+deb13u58:7.1.2.13+dfsg1-1
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 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+deb11u9Fixed in 8:6.9.11.60+dfsg-1.6+deb12u5Fixed in 8:6.9.11.60+dfsg-1.6+deb12u6Fixed in 8:7.1.1.43+dfsg1-1+deb13u4Fixed in 8:7.1.1.43+dfsg1-1+deb13u5Fixed in 8:7.1.2.13+dfsg1-1
  2. Upgrade

    Upgrade alpine/imagemagick6 to a version that resolves this vulnerability.

    Fixed in 6.9.10.37-r0
  3. Upgrade

    Upgrade alpine/imagemagick6 to a version that resolves this vulnerability.

    Fixed in 6.9.10.39-r0
  4. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Patch 1007b98f8795ad4bea6bc5f68a32d83e982fdae4

Event History

Sep 9, 2018
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via OSV·03:29 PM
DescriptionSeverityAffected Software
Mar 31, 2020
Data Sourced
via Red Hat·10:33 PM
DescriptionSeverityAffected Software
Apr 28, 2021
Data Sourced
05:20 PM
Weakness
Data Sourced
via NVD·05:20 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·05:20 PM
Affected Software
Aug 13, 2021
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·03:53 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·01:44 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2018-16749.

2

What is the severity of CVE-2018-16749?

The severity of CVE-2018-16749 is medium with a CVSS score of 6.5.

3

What is the affected software?

The affected software is ImageMagick versions 7.0.7-29 and earlier.

4

How can the vulnerability be exploited?

The vulnerability can be exploited by persuading a victim to open a specially crafted file.

5

Is there a fix available for CVE-2018-16749?

Yes, there are patches and updates available for the affected software.

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