CVE-2017-15238
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the...
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the height or width is zero, related to ReadJNGImage.
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
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the height or width is zero, related to ReadJNGImage.
- Record
CVE-2017-15238- 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-416
- Updated
- 2026-11-02
CVE List No score
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the height or width is zero, related to ReadJNGImage.
- Record
CVE-2017-15238- Updated
- 2026-11-02
EUVDEUVD-2017-6698 No score
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the height or width is zero, related to ReadJNGImage.
- Record
EUVD-2017-6698- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-rr9g-mq89-3f7g
8.8
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the...
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the height or width is zero, related to ReadJNGImage.
- Record
GHSA-rr9g-mq89-3f7g- 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-416
- Updated
- 2026-11-02
OSV
8.8
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the height or width is zero, related to ReadJNGImage.
- Record
CVE-2017-15238- 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-15238
8.8
ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the height or width is zero, related to ReadJNGImage.
- Record
DEBIAN-CVE-2017-15238- 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
OSVSUSE-SU-2018:0413-1 No score
Security update for GraphicsMagick
This update for GraphicsMagick fixes several issues.
These security issues were fixed:
- CVE-2017-13065: Prevent NULL pointer dereference in the function SVGStartElement (bsc#1055038).
- CVE-2018-5685: Prevent infinite loop and application hang in the ReadBMPImage function. Remote attackers could leverage this vulnerability to cause a denial of service via an image file with a crafted bit-field mask value (bsc#1075939).
- CVE-2017-9262: The ReadJNGImage function in coders/png.c allowed attackers to cause a denial of service (memory leak) via a crafted file (bsc#1043353)
- CVE-2017-9261: The ReadMNGImage function in coders/png.c allowed attackers to cause a denial of service (memory leak) via a crafted file (bsc#1043354)
- CVE-2017-10995: The mng_get_long function in coders/png.c allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted MNG image (bsc#1047908)
- CVE-2017-11102: The ReadOneJNGImage function allowed remote attackers to cause a denial of service (application crash) during JNG reading via a zero-length color_image data structure (bsc#1047910).
- CVE-2017-11539: Prevent memory leak in the ReadOnePNGImage() function in coders/png.c (bsc#1050037)
- CVE-2017-11505: The ReadOneJNGImage function in coders/png.c allowed remote attackers to cause a denial of service (large loop and CPU consumption) via a crafted file (bsc#1050072)
- CVE-2017-11526: The ReadOneMNGImage function in coders/png.c allowed remote attackers to cause a denial of service (large loop and CPU consumption) via a crafted file (bsc#1050100)
- CVE-2017-11750: The ReadOneJNGImage function in coders/png.c allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file (bsc#1051442)
- CVE-2017-12565: Prevent memory leak in the function ReadOneJNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052470)
- CVE-2017-12676: Prevent memory leak in the function ReadOneJNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052708)
- CVE-2017-12673: Prevent memory leak in the function ReadOneMNGImage in coders/png.c, which allowed attackers to cause a denial of service (bsc#1052717)
- CVE-2017-12643: Prevent a memory exhaustion vulnerability in ReadOneJNGImage in coders\png.c (bsc#1052768)
- CVE-2017-12641: Prevent a memory leak vulnerability in ReadOneJNGImage in coders\png.c (bsc#1052777)
- CVE-2017-12640: Prevent an out-of-bounds read vulnerability in ReadOneMNGImage in coders/png.c (bsc#1052781)
- CVE-2017-12935: The ReadMNGImage function in coders/png.c mishandled large MNG images, leading to an invalid memory read in the SetImageColorCallBack function in magick/image.c (bsc#1054600)
- CVE-2017-13147: Prevent allocation failure in the function ReadMNGImage in coders/png.c when a small MNG file has a MEND chunk with a large length value (bsc#1055374)
- CVE-2017-13142: Added additional checks for short files to prevent a crafted PNG file from triggering a crash (bsc#1055455)
- CVE-2017-13141: Prevent memory leak in ReadOnePNGImage in coders/png.c (bsc#1055456)
- CVE-2017-14103: The ReadJNGImage and ReadOneJNGImage functions in coders/png.c did not properly manage image pointers after certain error conditions, which allowed remote attackers to conduct use-after-free attacks via a crafted file, related to a ReadMNGImage out-of-order CloseBlob call (bsc#1057000)
- CVE-2017-14649: ReadOneJNGImage in coders/png.c did not properly validate JNG data, leading to a denial of service (assertion failure in magick/pixel_cache.c, and application crash) (bsc#1060162)
- CVE-2017-15218: Prevent memory leak in ReadOneJNGImage in coders/png.c (bsc#1062752)
- CVE-2017-15238: ReadOneJNGImage had a use-after-free issue when the height or width is zero, related to ReadJNGImage (bsc#1067198).
- CVE-2017-17782: Prevent heap-based buffer over-read in…
- Record
SUSE-SU-2018:0413-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
graphicsmagickDebian:12 |
before 1.3.26-14 | 1.3.26-14 |
graphicsmagickDebian:13 |
before 1.3.26-14 | 1.3.26-14 |
graphicsmagickDebian:14 |
before 1.3.26-14 | 1.3.26-14 |
graphicsmagickDebian:9 From an advisory covering 56 CVEs |
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 |
GraphicsMagickSUSE:Linux Enterprise Software Development Kit 11 SP4 From an advisory covering 34 CVEs |
before 1.2.5-4.78.33.1 | 1.2.5-4.78.33.1 |
GraphicsMagickSUSE:Studio Onsite 1.3 From an advisory covering 34 CVEs |
before 1.2.5-4.78.33.1 | 1.2.5-4.78.33.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-2017-15238 is a high vulnerability (CVSS 8.8) in Graphicsmagick, published October 11, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.75%, the 77th percentile. Fixed in graphicsmagick 1.3.26-14.
References
debian.org/security/2018/dsa-4321
sourceforge.net/p/graphicsmagick/bugs/469
hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset%3Bnode=df946910910d
hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset%3Bnode=93bdb9b30076
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF62B5PJA2JDUOCKJGUQO3SPL74BEYSV
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WHIKB4TP6KBJWT2UIPWL5MWMG5QXKGEJ
Show 71 moreShow less
nvd.nist.gov/vuln/detail/CVE-2017-15238
hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset;node=93bdb9b30076
hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset;node=df946910910d
lists.fedoraproject.org/archives/list/[email protected]/message/PF62B5PJA2JDUOCKJGUQO3SPL74BEYSV
lists.fedoraproject.org/archives/list/[email protected]/message/WHIKB4TP6KBJWT2UIPWL5MWMG5QXKGEJ
github.com/advisories/GHSA-rr9g-mq89-3f7g
security-tracker.debian.org/tracker/CVE-2017-15238
suse.com/support/update/announcement/2018/suse-su-20180413-1
bugzilla.suse.com/1043353
bugzilla.suse.com/1043354
bugzilla.suse.com/1047908
bugzilla.suse.com/1047910
bugzilla.suse.com/1050037
bugzilla.suse.com/1050072
bugzilla.suse.com/1050100
bugzilla.suse.com/1051442
bugzilla.suse.com/1052470
bugzilla.suse.com/1052708
bugzilla.suse.com/1052717
bugzilla.suse.com/1052768
bugzilla.suse.com/1052777
bugzilla.suse.com/1052781
bugzilla.suse.com/1054600
bugzilla.suse.com/1055038
bugzilla.suse.com/1055374
bugzilla.suse.com/1055455
bugzilla.suse.com/1055456
bugzilla.suse.com/1057000
bugzilla.suse.com/1060162
bugzilla.suse.com/1062752
bugzilla.suse.com/1067198
bugzilla.suse.com/1073690
bugzilla.suse.com/1074023
bugzilla.suse.com/1074120
bugzilla.suse.com/1074125
bugzilla.suse.com/1074175
bugzilla.suse.com/1075939
suse.com/security/cve/CVE-2014-9811
suse.com/security/cve/CVE-2017-10995
suse.com/security/cve/CVE-2017-11102
suse.com/security/cve/CVE-2017-11505
suse.com/security/cve/CVE-2017-11526
suse.com/security/cve/CVE-2017-11539
suse.com/security/cve/CVE-2017-11750
suse.com/security/cve/CVE-2017-12565
suse.com/security/cve/CVE-2017-12640
suse.com/security/cve/CVE-2017-12641
suse.com/security/cve/CVE-2017-12643
suse.com/security/cve/CVE-2017-12673
suse.com/security/cve/CVE-2017-12676
suse.com/security/cve/CVE-2017-12935
suse.com/security/cve/CVE-2017-13065
suse.com/security/cve/CVE-2017-13141
suse.com/security/cve/CVE-2017-13142
suse.com/security/cve/CVE-2017-13147
suse.com/security/cve/CVE-2017-14103
suse.com/security/cve/CVE-2017-14174
suse.com/security/cve/CVE-2017-14649
suse.com/security/cve/CVE-2017-15218
suse.com/security/cve/CVE-2017-15238
suse.com/security/cve/CVE-2017-16669
suse.com/security/cve/CVE-2017-17501
suse.com/security/cve/CVE-2017-17504
suse.com/security/cve/CVE-2017-17782
suse.com/security/cve/CVE-2017-17879
suse.com/security/cve/CVE-2017-17884
suse.com/security/cve/CVE-2017-17915
suse.com/security/cve/CVE-2017-8352
suse.com/security/cve/CVE-2017-9261
suse.com/security/cve/CVE-2017-9262
suse.com/security/cve/CVE-2018-5685
Left out here: the rest of 1 source description. The JSON record has them.