CVE-2018-20189: Input Validation

Published Dec 17, 2018
·
Updated

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Affected Software

22 affected componentsFixes available
GraphicsMagick Graphicsmagick=1.3.31
Debian Debian Linux=8.0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
alpine/graphicsmagick<1.3.32-r0
1.3.32-r0
debian/graphicsmagick<1.4~hg15873-1
1.4~hg15873-1
debian/graphicsmagick<1.4~hg15873-1
1.4~hg15873-1
debian/graphicsmagick<1.4~hg15873-1
1.4~hg15873-1
debian/graphicsmagick
1.3.20-3+deb8u51.3.30+hg15796-1~deb9u31.4~hg15873-1

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.32-r0
  2. Upgrade

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

    Fixed in 1.4~hg15873-1
  3. Upgrade

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

    Fixed in 1.3.20-3+deb8u5Fixed in 1.3.30+hg15796-1~deb9u3Fixed in 1.4~hg15873-1

Event History

Dec 17, 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·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via OSV·08:29 PM
DescriptionSeverityAffected Software
Dec 3, 2019
Data Sourced
04:15 PM
Weakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
04:15 PM
Affected Software
Nov 21, 2024
Updated
via NVD·04:01 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·01:52 AM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2018-20189?

CVE-2018-20189 is a vulnerability found in GraphicsMagick 1.3.31 that allows a crash and denial of service via a crafted dib file.

2

What is the severity of CVE-2018-20189?

The severity of CVE-2018-20189 is medium with a severity value of 6.5.

3

How does CVE-2018-20189 affect GraphicsMagick?

CVE-2018-20189 affects GraphicsMagick 1.3.31, causing a crash and denial of service when processing a crafted dib file.

4

How can I fix CVE-2018-20189?

To fix CVE-2018-20189, you should update your GraphicsMagick installation to version 1.4+really1.3.35-1~deb10u2 or later.

5

Are there any additional references for CVE-2018-20189?

Yes, you can find more information about CVE-2018-20189 at the following links: http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/648e2b406589, http://www.securityfocus.com/bid/106227, https://lists.debian.org/debian-lts-announce/2018/12/msg00018.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