CVE-2017-12937
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based...
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
- Record
CVE-2017-12937- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
- Record
CVE-2017-12937- Updated
- 2026-11-02
EUVDEUVD-2017-4461 No score
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
- Record
EUVD-2017-4461- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-rm5j-v5rh-42x3
8.8
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based...
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
- Record
GHSA-rm5j-v5rh-42x3- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
8.8
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
- Record
CVE-2017-12937- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-12937
8.8
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
- Record
DEBIAN-CVE-2017-12937- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2017-12937
8.8
The ReadSUNImage function in coders/sun.c in GraphicsMagick 1.3.26 has a colormap heap-based buffer over-read.
- Record
UBUNTU-CVE-2017-12937- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2017-0297 No score
Updated graphicsmagick packages fix security vulnerability
Invalid memory read in SetImageColorCallBack() in image.c (CVE-2017-12935).
Use-after-free in ReadWMFImage() in wmf.c (CVE-2017-12936).
Heap-based buffer overflow in ReadSUNImage() in sun.c (CVE-2017-12937).
- Record
MGASA-2017-0297- Updated
- 2026-11-02
OSVSUSE-SU-2017:3056-1 No score
Security update for GraphicsMagick
This update for GraphicsMagick fixes the following issues:
- CVE-2017-15033: A denial of service attack (memory leak) in ReadYUVImage in coders/yuv.c was fixed (bsc#1061873)
- CVE-2017-13063: A heap-based buffer overflow vulnerability in the function GetStyleTokens in coders/svg.c was fixed (bsc#1055050)
- CVE-2017-13064: A heap-based buffer overflow vulnerability in the function GetStyleTokens in coders/svg.c was fixed (bsc#1055042)
- CVE-2017-12936: The ReadWMFImage function in coders/wmf.c in GraphicsMagick had a use-after-free issue for data associated with exception reporting. (bsc#1054598)
- CVE-2017-13139: The ReadOneMNGImage function in coders/png.c had an out-of-bounds read with the MNG CLIP chunk. (bsc#1055430)
- CVE-2017-12937: The ReadSUNImage function in coders/sun.c in GraphicsMagick had a colormap heap-based buffer over-read. (bsc#1054596)
- CVE-2017-11534: A Memory Leak in the lite_font_map() function in coders/wmf.c was fixed (bsc#1050135)
- Record
SUSE-SU-2017:3056-1- Updated
- 2026-11-02
OSVUSN-4222-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-4222-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
graphicsmagickDebian:12 |
before 1.3.26-6 | 1.3.26-6 |
graphicsmagickDebian:13 |
before 1.3.26-6 | 1.3.26-6 |
graphicsmagickDebian:14 |
before 1.3.26-6 | 1.3.26-6 |
graphicsmagickDebian:7 |
before 1.3.16-1.1+deb7u9, plus listed versions 1.3.16-1.11.3.16-1.1+deb7u11.3.16-1.1+deb7u21.3.16-1.1+deb7u31.3.16-1.1+deb7u4 Show 4 moreShow less1.3.16-1.1+deb7u51.3.16-1.1+deb7u61.3.16-1.1+deb7u71.3.16-1.1+deb7u8 |
1.3.16-1.1+deb7u9 |
graphicsmagickDebian:8 |
before 1.3.20-3+deb8u3, plus listed versions 1.3.20-3+deb8u11.3.20-3+deb8u2 |
1.3.20-3+deb8u3 |
graphicsmagickDebian:9 |
before 1.3.30+hg15796-1~deb9u1, plus listed versions 1.3.25-81.3.26-11.3.26-101.3.26-111.3.26-12 Show 24 moreShow less1.3.26-131.3.26-141.3.26-151.3.26-161.3.26-171.3.26-181.3.26-191.3.26-21.3.26-31.3.26-41.3.26-51.3.26-61.3.26-71.3.26-81.3.26-91.3.27-11.3.27-21.3.27-31.3.27-41.3.28-11.3.28-21.3.29+hg15665-11.3.29-11.3.30-1 |
1.3.30+hg15796-1~deb9u1 |
graphicsmagickMageia:5 |
before 1.3.26-1.2.mga5 | 1.3.26-1.2.mga5 |
graphicsmagickMageia:6 |
before 1.3.26-1.3.mga6 | 1.3.26-1.3.mga6 |
GraphicsMagickSUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 1.2.5-4.78.16.1 | 1.2.5-4.78.16.1 |
GraphicsMagickSUSE:Studio Onsite 1.3 |
before 1.2.5-4.78.16.1 | 1.2.5-4.78.16.1 |
graphicsmagickUbuntu:Pro:14.04:LTS |
before 1.3.18-1ubuntu3.1+esm3, plus listed versions 1.3.16-1.1ubuntu21.3.16-1.1ubuntu31.3.18-1ubuntu31.3.18-1ubuntu3.11.3.18-1ubuntu3.1+esm11.3.18-1ubuntu3.1+esm2 |
1.3.18-1ubuntu3.1+esm3 |
graphicsmagickUbuntu:16.04:LTS |
before 1.3.23-1ubuntu0.3, plus listed versions 1.3.21-31.3.23-11.3.23-1build11.3.23-1ubuntu0.11.3.23-1ubuntu0.2 |
1.3.23-1ubuntu0.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| 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-2017-12937 is a high vulnerability (CVSS 8.8) in Graphicsmagick, published August 18, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.31%, the 83rd percentile. Fixed in graphicsmagick 1.3.26-6.
References
hg.code.sf.net/p/graphicsmagick/code/rev/95d00d55e978
securityfocus.com/bid/100442
debian.org/security/2018/dsa-4321
lists.debian.org/debian-lts-announce/2018/06/msg00009.html
blogs.gentoo.org/ago/2017/08/05/graphicsmagick-heap-based-buffer-overflow-in-readsunimage-sun-c
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF62B5PJA2JDUOCKJGUQO3SPL74BEYSV
Show 44 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WHIKB4TP6KBJWT2UIPWL5MWMG5QXKGEJ
usn.ubuntu.com/4222-1
nvd.nist.gov/vuln/detail/CVE-2017-12937
lists.fedoraproject.org/archives/list/[email protected]/message/PF62B5PJA2JDUOCKJGUQO3SPL74BEYSV
lists.fedoraproject.org/archives/list/[email protected]/message/WHIKB4TP6KBJWT2UIPWL5MWMG5QXKGEJ
github.com/advisories/GHSA-rm5j-v5rh-42x3
security-tracker.debian.org/tracker/CVE-2017-12937
advisories.mageia.org/MGASA-2017-0297.html
bugs.mageia.org/show_bug.cgi?id=21564
openwall.com/lists/oss-security/2017/08/18/4
openwall.com/lists/oss-security/2017/08/18/3
openwall.com/lists/oss-security/2017/08/18/5
suse.com/support/update/announcement/2017/suse-su-20173056-1
bugzilla.suse.com/1050135
bugzilla.suse.com/1054596
bugzilla.suse.com/1054598
bugzilla.suse.com/1055042
bugzilla.suse.com/1055050
bugzilla.suse.com/1055430
bugzilla.suse.com/1061873
suse.com/security/cve/CVE-2017-11534
suse.com/security/cve/CVE-2017-12936
suse.com/security/cve/CVE-2017-12937
suse.com/security/cve/CVE-2017-13063
suse.com/security/cve/CVE-2017-13064
suse.com/security/cve/CVE-2017-13139
suse.com/security/cve/CVE-2017-15033
ubuntu.com/security/CVE-2017-12937
ubuntu.com/security/notices/USN-4222-1
cve.org/CVERecord?id=CVE-2017-12937
ubuntu.com/security/CVE-2017-11638
ubuntu.com/security/CVE-2017-11641
ubuntu.com/security/CVE-2017-11642
ubuntu.com/security/CVE-2017-11643
ubuntu.com/security/CVE-2017-12935
ubuntu.com/security/CVE-2017-12936
ubuntu.com/security/CVE-2017-13063
ubuntu.com/security/CVE-2017-13064
ubuntu.com/security/CVE-2017-13065
ubuntu.com/security/CVE-2017-13134
ubuntu.com/security/CVE-2017-13737
ubuntu.com/security/CVE-2017-13775
ubuntu.com/security/CVE-2017-13776
ubuntu.com/security/CVE-2017-13777