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

5 affected componentsFixes available
debian/graphicsmagick
1.4+really1.3.36+hg16481-2+deb11u11.4+really1.3.40-41.4+really1.3.45+hg17689-1
GraphicsMagick Graphicsmagick=1.3.28
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.4+really1.3.36+hg16481-2+deb11u1Fixed in 1.4+really1.3.40-4Fixed in 1.4+really1.3.45+hg17689-1
  2. 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
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Data Sourced
via NVD·09:29 PM
DescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:11 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:07 AM
RemedyDescriptionSeverityAffected Software

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