{"id":"CVE-2017-15238","aliases":["DEBIAN-CVE-2017-15238","DSA-4321-1","EUVD-2017-6698","GHSA-rr9g-mq89-3f7g","SUSE-SU-2018:0413-1"],"status":"published","title":"ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the...","description":"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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01751,"percentile":0.78024,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2017-10-11T03:00:00Z","modified":"2026-09-01T20:03:44Z","fixes":[{"ecosystem":"Debian:12","package":"graphicsmagick","fixed_in":["1.3.26-14"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"graphicsmagick","fixed_in":["1.3.26-14"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"graphicsmagick","fixed_in":["1.3.26-14"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"graphicsmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.26-14"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"graphicsmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.26-14"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"graphicsmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.26-14"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"graphicsmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.30+hg15796-1~deb9u1"}]}],"versions":["1.3.25-8","1.3.26-1","1.3.26-10","1.3.26-11","1.3.26-12","1.3.26-13","1.3.26-14","1.3.26-15","1.3.26-16","1.3.26-17","1.3.26-18","1.3.26-19","1.3.26-2","1.3.26-3","1.3.26-4","1.3.26-5","1.3.26-6","1.3.26-7","1.3.26-8","1.3.26-9","1.3.27-1","1.3.27-2","1.3.27-3","1.3.27-4","1.3.28-1","1.3.28-2","1.3.29+hg15665-1","1.3.29-1","1.3.30-1"],"bundled":56},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","package":"GraphicsMagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5-4.78.33.1"}]}],"bundled":34},{"source":"osv","ecosystem":"SUSE:Studio Onsite 1.3","package":"GraphicsMagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5-4.78.33.1"}]}],"bundled":34}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"graphicsmagick","product":"graphicsmagick"}],"references":[{"url":"https://www.debian.org/security/2018/dsa-4321","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://sourceforge.net/p/graphicsmagick/bugs/469/","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"http://hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset%3Bnode=df946910910d","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset%3Bnode=93bdb9b30076","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF62B5PJA2JDUOCKJGUQO3SPL74BEYSV/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WHIKB4TP6KBJWT2UIPWL5MWMG5QXKGEJ/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-15238"},{"url":"http://hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset;node=93bdb9b30076"},{"url":"http://hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset;node=df946910910d"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF62B5PJA2JDUOCKJGUQO3SPL74BEYSV"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WHIKB4TP6KBJWT2UIPWL5MWMG5QXKGEJ"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PF62B5PJA2JDUOCKJGUQO3SPL74BEYSV"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WHIKB4TP6KBJWT2UIPWL5MWMG5QXKGEJ"},{"url":"https://sourceforge.net/p/graphicsmagick/bugs/469"},{"url":"https://github.com/advisories/GHSA-rr9g-mq89-3f7g"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-15238","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180413-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1043353","tags":["report"]},{"url":"https://bugzilla.suse.com/1043354","tags":["report"]},{"url":"https://bugzilla.suse.com/1047908","tags":["report"]},{"url":"https://bugzilla.suse.com/1047910","tags":["report"]},{"url":"https://bugzilla.suse.com/1050037","tags":["report"]},{"url":"https://bugzilla.suse.com/1050072","tags":["report"]},{"url":"https://bugzilla.suse.com/1050100","tags":["report"]},{"url":"https://bugzilla.suse.com/1051442","tags":["report"]},{"url":"https://bugzilla.suse.com/1052470","tags":["report"]},{"url":"https://bugzilla.suse.com/1052708","tags":["report"]},{"url":"https://bugzilla.suse.com/1052717","tags":["report"]},{"url":"https://bugzilla.suse.com/1052768","tags":["report"]},{"url":"https://bugzilla.suse.com/1052777","tags":["report"]},{"url":"https://bugzilla.suse.com/1052781","tags":["report"]},{"url":"https://bugzilla.suse.com/1054600","tags":["report"]},{"url":"https://bugzilla.suse.com/1055038","tags":["report"]},{"url":"https://bugzilla.suse.com/1055374","tags":["report"]},{"url":"https://bugzilla.suse.com/1055455","tags":["report"]},{"url":"https://bugzilla.suse.com/1055456","tags":["report"]},{"url":"https://bugzilla.suse.com/1057000","tags":["report"]},{"url":"https://bugzilla.suse.com/1060162","tags":["report"]},{"url":"https://bugzilla.suse.com/1062752","tags":["report"]},{"url":"https://bugzilla.suse.com/1067198","tags":["report"]},{"url":"https://bugzilla.suse.com/1073690","tags":["report"]},{"url":"https://bugzilla.suse.com/1074023","tags":["report"]},{"url":"https://bugzilla.suse.com/1074120","tags":["report"]},{"url":"https://bugzilla.suse.com/1074125","tags":["report"]},{"url":"https://bugzilla.suse.com/1074175","tags":["report"]},{"url":"https://bugzilla.suse.com/1075939","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2014-9811","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-10995","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11102","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11505","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11526","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11539","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11750","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12565","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12640","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12641","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12643","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12673","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12676","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12935","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-13065","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-13141","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-13142","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-13147","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14103","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14174","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14649","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-15218","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-15238","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-16669","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17501","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17504","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17782","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17879","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17884","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17915","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-8352","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9261","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9262","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-5685","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-15238","description":"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.","status":"published","published":"2017-10-11T03:00:00Z","modified":"2024-08-05T19:50:16.159Z","updated_at":"2026-11-02T14:33:14.271248Z"}],"euvd":[{"id":"EUVD-2017-6698","description":"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.","status":"published","published":"2017-10-11T03:00:00Z","modified":"2024-08-05T19:50:16Z","updated_at":"2026-11-03T02:23:14.849102Z"}],"ghsa":[{"id":"GHSA-rr9g-mq89-3f7g","title":"ReadOneJNGImage in coders/png.c in GraphicsMagick 1.3.26 has a use-after-free issue when the...","description":"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.","status":"published","published":"2022-05-14T00:57:20Z","modified":"2025-04-20T03:47:40Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:01:53.867735Z"}],"nvd":[{"id":"CVE-2017-15238","description":"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.","status":"published","published":"2017-10-11T03:29:00.337Z","modified":"2026-06-17T01:07:25.49Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:04:01.734197Z"}],"osv":[{"id":"CVE-2017-15238","description":"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.","status":"published","published":"2017-10-11T03:29:00.337Z","modified":"2026-03-14T09:22:17.25579Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:04.572713Z"},{"id":"DEBIAN-CVE-2017-15238","description":"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.","status":"published","published":"2017-10-11T03:29:00.337Z","modified":"2026-09-01T20:03:44.508610698Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:28.801885Z"},{"id":"DSA-4321-1","title":"graphicsmagick - security update","status":"published","published":"2018-10-16T00:00:00Z","modified":"2026-03-09T02:11:06.805314Z","updated_at":"2026-11-02T15:46:16.862196Z"},{"id":"SUSE-SU-2018:0413-1","title":"Security update for GraphicsMagick","description":"This update for GraphicsMagick fixes several issues.\n\nThese security issues were fixed:\n\n- CVE-2017-13065: Prevent NULL pointer dereference in the function SVGStartElement\n  (bsc#1055038).\n- CVE-2018-5685: Prevent infinite loop and application hang in the ReadBMPImage\n  function. Remote attackers could leverage this vulnerability to cause a denial\n  of service via an image file with a crafted bit-field mask value (bsc#1075939).\n- CVE-2017-9262: The ReadJNGImage function in coders/png.c allowed attackers to\n  cause a denial of service (memory leak) via a crafted file (bsc#1043353)\n- CVE-2017-9261: The ReadMNGImage function in coders/png.c allowed attackers to\n  cause a denial of service (memory leak) via a crafted file (bsc#1043354)\n- CVE-2017-10995: The mng_get_long function in coders/png.c allowed remote\n  attackers to cause a denial of service (heap-based buffer over-read and\n  application crash) via a crafted MNG image (bsc#1047908)\n- CVE-2017-11102: The ReadOneJNGImage function allowed remote attackers to\n  cause a denial of service (application crash) during JNG reading via a\n  zero-length color_image data structure (bsc#1047910).\n- CVE-2017-11539: Prevent memory leak in the ReadOnePNGImage() function in\n  coders/png.c (bsc#1050037)\n- CVE-2017-11505: The ReadOneJNGImage function in coders/png.c allowed remote\n  attackers to cause a denial of service (large loop and CPU consumption) via a\n  crafted file (bsc#1050072)\n- CVE-2017-11526: The ReadOneMNGImage function in coders/png.c allowed remote\n  attackers to cause a denial of service (large loop and CPU consumption) via a\n  crafted file (bsc#1050100)\n- CVE-2017-11750: The ReadOneJNGImage function in coders/png.c allowed remote\n  attackers to cause a denial of service (NULL pointer dereference) via a crafted\n  file (bsc#1051442)\n- CVE-2017-12565: Prevent memory leak in the function ReadOneJNGImage in\n  coders/png.c, which allowed attackers to cause a denial of service\n  (bsc#1052470)\n- CVE-2017-12676: Prevent memory leak in the function ReadOneJNGImage in\n  coders/png.c, which allowed attackers to cause a denial of service\n  (bsc#1052708)\n- CVE-2017-12673: Prevent memory leak in the function ReadOneMNGImage in\n  coders/png.c, which allowed attackers to cause a denial of service\n  (bsc#1052717)\n- CVE-2017-12643: Prevent a memory exhaustion vulnerability in ReadOneJNGImage\n  in coders\\png.c (bsc#1052768)\n- CVE-2017-12641: Prevent a memory leak vulnerability in ReadOneJNGImage in\n  coders\\png.c (bsc#1052777)\n- CVE-2017-12640: Prevent an out-of-bounds read vulnerability in\n  ReadOneMNGImage in coders/png.c (bsc#1052781)\n- CVE-2017-12935: The ReadMNGImage function in coders/png.c mishandled large\n  MNG images, leading to an invalid memory read in the SetImageColorCallBack\n  function in magick/image.c (bsc#1054600)\n- CVE-2017-13147: Prevent allocation failure in the function ReadMNGImage in\n  coders/png.c when a small MNG file has a MEND chunk with a large length value\n  (bsc#1055374)\n- CVE-2017-13142: Added additional checks for short files to prevent a crafted\n  PNG file from triggering a crash (bsc#1055455)\n- CVE-2017-13141: Prevent memory leak in ReadOnePNGImage in coders/png.c\n  (bsc#1055456)\n- CVE-2017-14103: The ReadJNGImage and ReadOneJNGImage functions in\n  coders/png.c did not properly manage image pointers after certain error\n  conditions, which allowed remote attackers to conduct use-after-free attacks\n  via a crafted file, related to a ReadMNGImage out-of-order CloseBlob call\n  (bsc#1057000)\n- CVE-2017-14649: ReadOneJNGImage in coders/png.c did not properly validate JNG\n  data, leading to a denial of service (assertion failure in\n  magick/pixel_cache.c, and application crash) (bsc#1060162)\n- CVE-2017-15218: Prevent memory leak in ReadOneJNGImage in coders/png.c\n  (bsc#1062752)\n- CVE-2017-15238: ReadOneJNGImage had a use-after-free issue when the height or\n  width is zero, related to ReadJNGImage (bsc#1067198).\n- CVE-2017-17782: Prevent heap-based buffer over-read in ReadOneJNGImage\n  related to oFFs chunk allocation (bsc#1073690).\n- CVE-2017-17501: WriteOnePNGImage had a heap-based buffer over-read that could\n  be triggered via a crafted file (bsc#1074023).\n- CVE-2017-17884: Prevent memory leak in the function WriteOnePNGImage in\n  coders/png.c, which allowed attackers to cause a denial of service via a\n  crafted PNG image file (bsc#1074120)\n- CVE-2017-17879: Prevent heap-based buffer over-read in ReadOneMNGImage in\n  coders/png.c, related to length calculation and caused by an off-by-one error\n  (bsc#1074125)\n- CVE-2017-17915: Prevent heap-based buffer over-read in ReadMNGImage when\n  accessing one byte testing whether a limit has been reached (bsc#1074175).\n","status":"published","published":"2018-02-09T14:54:21Z","modified":"2026-02-04T02:37:48.167723Z","updated_at":"2026-11-02T15:53:44.594517Z"}]}}
