CVE-2018-9018: Divide by Zero

Published Mar 25, 2018
·
Updated

In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.

Affected Software

21 affected componentsFixes available
GraphicsMagick Graphicsmagick=1.3.28
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
debian/graphicsmagick
1.3.16-1.1+deb7u191.3.20-3+deb8u41.3.30+hg15796-1~deb9u11.3.28-2
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0
alpine/graphicsmagick<1.3.29-r0
1.3.29-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.3.29-r0
  2. Upgrade

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

    Fixed in 1.3.16-1.1+deb7u19Fixed in 1.3.20-3+deb8u4Fixed in 1.3.30+hg15796-1~deb9u1Fixed in 1.3.28-2
  3. Compensating control

    Protect affected GraphicsMagick deployments from crafted .mng files by blocking or filtering inbound MNG content at a network layer (e.g., WAF/ACL) to prevent remote attackers from triggering the ReadMNGImage divide-by-zero crash/denial of service.

Event History

Mar 25, 2018
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Data Sourced
via OSV·09:29 PM
DescriptionSeverityAffected Software
Jan 12, 2020
Data Sourced
03:15 AM
Weakness
Nov 7, 2023
Data Sourced
via NVD·03:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
03:01 AM
Affected Software
Nov 21, 2024
Updated
via NVD·04:14 AM
Affected Software
Jun 17, 2026
Updated
via NVD·02:05 AM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2018-9018?

CVE-2018-9018 is a vulnerability found in GraphicsMagick 1.3.28 that allows remote attackers to cause a crash and denial of service by exploiting a divide-by-zero in the ReadMNGImage function of coders/png.c.

2

How severe is CVE-2018-9018?

CVE-2018-9018 has a severity rating of 6.5, which is considered medium.

3

What software versions are affected by CVE-2018-9018?

The affected software versions include GraphicsMagick 1.3.28.1.3.28-2, GraphicsMagick 1.3.18-1ubuntu3.1+, GraphicsMagick 1.3.29, GraphicsMagick 1.3.23-1ubuntu0.6+, GraphicsMagick 1.4+really1.3.35-1~deb10u2, GraphicsMagick 1.4+really1.3.35-1~deb10u3, GraphicsMagick 1.4+really1.3.36+hg16481-2+deb11u1, GraphicsMagick 1.4+really1.3.40-4, and GraphicsMagick 1.4+really1.3.42-1.

4

How do I fix CVE-2018-9018?

To fix CVE-2018-9018, upgrade to GraphicsMagick version 1.3.28-2 or apply the available security patches for the affected software versions.

5

Where can I find more information about CVE-2018-9018?

You can find more information about CVE-2018-9018 at the following references: [1] http://www.securityfocus.com/bid/103526 [2] https://lists.debian.org/debian-lts-announce/2018/03/msg00025.html [3] https://lists.debian.org/debian-lts-announce/2018/08/msg00002.html

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