{"id":"CVE-2017-12640","details":"ImageMagick 7.0.6-1 has an out-of-bounds read vulnerability in ReadOneMNGImage in coders/png.c.","modified":"2026-04-16T06:19:13.478149044Z","published":"2017-08-07T15:29:00.300Z","related":["SUSE-SU-2018:0349-1","SUSE-SU-2018:0350-1","SUSE-SU-2018:0413-1"],"references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/100155"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3681-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2017/dsa-4019"},{"type":"ADVISORY","url":"https://www.debian.org/security/2017/dsa-4040"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/issues/542"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/imagemagick/imagemagick","events":[{"introduced":"0"},{"last_affected":"9871b4ad7400606bbecf7f979b198080f4b107c3"},{"fixed":"307fa45d512641fcd105f0d57ca50c1437cd1b81"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"7.0.6-1"}]}}],"versions":["7.0.1-0","7.0.1-1","7.0.1-10","7.0.1-2","7.0.1-3","7.0.1-4","7.0.1-5","7.0.1-6","7.0.1-7","7.0.1-8","7.0.1-9","7.0.2-0","7.0.2-1","7.0.2-10","7.0.2-2","7.0.2-3","7.0.2-4","7.0.2-5","7.0.2-6","7.0.2-7","7.0.2-8","7.0.2-9","7.0.3-0","7.0.3-1","7.0.3-10","7.0.3-2","7.0.3-3","7.0.3-4","7.0.3-5","7.0.3-6","7.0.3-7","7.0.3-8","7.0.3-9","7.0.4-0","7.0.4-1","7.0.4-10","7.0.4-2","7.0.4-3","7.0.4-4","7.0.4-5","7.0.4-6","7.0.4-7","7.0.4-8","7.0.4-9","7.0.5-0","7.0.5-1","7.0.5-10","7.0.5-2","7.0.5-3","7.0.5-4","7.0.5-5","7.0.5-6","7.0.5-7","7.0.5-8","7.0.5-9","7.0.6-0","7.0.6-1"],"database_specific":{"vanir_signatures":[{"digest":{"length":46724,"function_hash":"36244493604687856662586930448989595769"},"deprecated":false,"target":{"function":"ReadOneMNGImage","file":"coders/png.c"},"source":"https://github.com/imagemagick/imagemagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81","signature_type":"Function","signature_version":"v1","id":"CVE-2017-12640-d10ad556"},{"deprecated":false,"signature_version":"v1","target":{"file":"coders/png.c"},"source":"https://github.com/imagemagick/imagemagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81","signature_type":"Line","id":"CVE-2017-12640-ee513c59","digest":{"line_hashes":["152853999237181391986133234558635795508","63158914722812412835756768275409076630","258829486961669500152028542393678270907","74120493628515550250525474420513271129"],"threshold":0.9}}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12640.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}],"vanir_signatures_modified":"2026-04-11T04:14:19Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}