CVE-2018-20185
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over...
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.3
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
- Record
CVE-2018-20185- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 2.6 Low
AV:N/AC:H/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
- Record
CVE-2018-20185- Updated
- 2026-11-02
EUVDEUVD-2018-12752 No score
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
- Record
EUVD-2018-12752- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-569g-rm32-h5jr
5.3
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over...
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
- Record
GHSA-569g-rm32-h5jr- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
5.3
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
- Record
CVE-2018-20185- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-20185
5.3
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
- Record
DEBIAN-CVE-2018-20185- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2018-20185
5.3
In GraphicsMagick 1.4 snapshot-20181209 Q8 on 32-bit platforms, there is a heap-based buffer over-read in the ReadBMPImage function of bmp.c, which allows attackers to cause a denial of service via a crafted bmp image file. This only affects GraphicsMagick installations with customized BMP limits.
- Record
UBUNTU-CVE-2018-20185- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2019-0033 No score
Updated graphicsmagick packages fix security vulnerabilities
It was discovered that graphicsmagick was subject to vulnerabilities.
- heap-based buffer overflow in the WriteTGAImage function of tga.c (CVE-2018-20184).
- denial of service vulnerability in ReadDIBImage function of coders/dib.c (CVE-2018-20189).
- heap-based buffer over-read in the ReadBMPImage function of bmp.c (CVE-2018-20185).
- Record
MGASA-2019-0033- Updated
- 2026-11-02
OSVSUSE-SU-2019:13923-1 No score
Security update for GraphicsMagick
This update for GraphicsMagick fixes the following issues:
Security issues fixed:
- CVE-2018-18544: Fixed memory leak in the function WriteMSLImage() (bsc#1113064).
- CVE-2017-10794: Fixed buffer overflow in RGB TIFF picture processing (bsc#1112392).
- CVE-2017-14997: Fixed integer underflow in ReadPICTImage in coders/pict.c (bsc#1112399).
- CVE-2018-20185: Fixed heap-based buffer over-read in the ReadBMPImage function of bmp.c (bsc#1119823)
- CVE-2018-20184: Fixed heap-based buffer overflow in the WriteTGAImage function of tga.c (bsc#1119822)
Regressions fixed after security update:
- CVE-2017-12663: Fixed memory leak in WriteMAPImage in coders/map.c (bsc#1052754).
- CVE-2017-9405: Fixed memory leak in the ReadICONImage function (bsc#1042911).
- CVE-2018-6405: Fixed ReadDCMImage function in coders/dcm (bsc#1078433).
Non-security issues fixed:
- debug_build: build more suitable for debugging
- Record
SUSE-SU-2019:13923-1- Updated
- 2026-11-02
OSVUSN-4207-1 No score
graphicsmagick vulnerabilities
It was discovered that GraphicsMagick incorrectly handled certain image files. An attacker could possibly use this issue to cause a denial of service or other unspecified impact.
- Record
USN-4207-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
graphicsmagickDebian:12 |
before 1.4~hg15880-1 | 1.4~hg15880-1 |
graphicsmagickDebian:13 |
before 1.4~hg15880-1 | 1.4~hg15880-1 |
graphicsmagickDebian:14 |
before 1.4~hg15880-1 | 1.4~hg15880-1 |
graphicsmagickDebian:8 From an advisory covering 3 CVEs |
before 1.3.20-3+deb8u5, plus listed versions 1.3.20-3+deb8u11.3.20-3+deb8u21.3.20-3+deb8u31.3.20-3+deb8u4 |
1.3.20-3+deb8u5 |
graphicsmagickMageia:6 From an advisory covering 3 CVEs |
before 1.3.31-1.3.mga6 | 1.3.31-1.3.mga6 |
GraphicsMagickSUSE:Linux Enterprise Software Development Kit 11 SP4 From an advisory covering 8 CVEs |
before 1.2.5-78.78.1 | 1.2.5-78.78.1 |
GraphicsMagickSUSE:Studio Onsite 1.3 From an advisory covering 8 CVEs |
before 1.2.5-78.78.1 | 1.2.5-78.78.1 |
graphicsmagickUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 1.3.16-1.1ubuntu21.3.16-1.1ubuntu31.3.18-1ubuntu31.3.18-1ubuntu3.11.3.18-1ubuntu3.1+esm1 Show 7 moreShow less1.3.18-1ubuntu3.1+esm21.3.18-1ubuntu3.1+esm31.3.18-1ubuntu3.1+esm41.3.18-1ubuntu3.1+esm51.3.18-1ubuntu3.1+esm61.3.18-1ubuntu3.1+esm71.3.18-1ubuntu3.1+esm8 |
None known |
graphicsmagickUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.3.21-31.3.23-11.3.23-1build11.3.23-1ubuntu0.11.3.23-1ubuntu0.1+esm1 Show 7 moreShow less1.3.23-1ubuntu0.21.3.23-1ubuntu0.31.3.23-1ubuntu0.41.3.23-1ubuntu0.51.3.23-1ubuntu0.61.3.23-1ubuntu0.6+esm11.3.23-1ubuntu0.6+esm2 |
None known |
graphicsmagickUbuntu:18.04:LTS |
before 1.3.28-2ubuntu0.1, plus listed versions 1.3.26-151.3.26-161.3.26-191.3.27-11.3.27-21.3.27-31.3.28-11.3.28-2 |
1.3.28-2ubuntu0.1 |
graphicsmagickUbuntu:18.04:LTS From an advisory covering 13 CVEs |
before 1.3.28-2ubuntu0.1, plus listed versions 1.3.26-151.3.26-161.3.26-191.3.27-11.3.27-21.3.27-31.3.28-11.3.28-2 |
1.3.28-2ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-20185 is a medium vulnerability (CVSS 5.3) in Graphicsmagick, published December 17, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.11%, the 81st percentile. Fixed in graphicsmagick 1.4~hg15880-1.
References
hg.graphicsmagick.org/hg/GraphicsMagick/rev/648e3977a293
sourceforge.net/p/graphicsmagick/bugs/582
securityfocus.com/bid/106229
lists.debian.org/debian-lts-announce/2018/12/msg00018.html
usn.ubuntu.com/4207-1
debian.org/security/2020/dsa-4640
Show 39 moreShow less
nvd.nist.gov/vuln/detail/CVE-2018-20185
github.com/advisories/GHSA-569g-rm32-h5jr
security-tracker.debian.org/tracker/CVE-2018-20185
advisories.mageia.org/MGASA-2019-0033.html
bugs.mageia.org/show_bug.cgi?id=24103
lists.opensuse.org/opensuse-updates/2018-12/msg00148.html
lists.suse.com/pipermail/sle-security-updates/2019-January/005014.html
suse.com/support/update/announcement/2019/suse-su-201913923-1
bugzilla.suse.com/1042911
bugzilla.suse.com/1052754
bugzilla.suse.com/1078433
bugzilla.suse.com/1112392
bugzilla.suse.com/1112399
bugzilla.suse.com/1113064
bugzilla.suse.com/1119822
bugzilla.suse.com/1119823
suse.com/security/cve/CVE-2017-10794
suse.com/security/cve/CVE-2017-12663
suse.com/security/cve/CVE-2017-14997
suse.com/security/cve/CVE-2017-9405
suse.com/security/cve/CVE-2018-18544
suse.com/security/cve/CVE-2018-20184
suse.com/security/cve/CVE-2018-20185
suse.com/security/cve/CVE-2018-6405
ubuntu.com/security/CVE-2018-20185
ubuntu.com/security/notices/USN-4207-1
cve.org/CVERecord?id=CVE-2018-20185
ubuntu.com/security/CVE-2018-20184
ubuntu.com/security/CVE-2018-20189
ubuntu.com/security/CVE-2019-11005
ubuntu.com/security/CVE-2019-11006
ubuntu.com/security/CVE-2019-11007
ubuntu.com/security/CVE-2019-11008
ubuntu.com/security/CVE-2019-11009
ubuntu.com/security/CVE-2019-11010
ubuntu.com/security/CVE-2019-11473
ubuntu.com/security/CVE-2019-11474
ubuntu.com/security/CVE-2019-11505
ubuntu.com/security/CVE-2019-11506