{"id":"CVE-2016-5688","published":"2016-12-13T15:00:00Z","modified":"2024-08-06T01:07:59Z","title":"The WPG parser in ImageMagick before 6.9.4-4 and 7.x before 7.0.1-5, when a memory limit is set, allows remote…","vendor":null,"product":null,"tier":"tail","description":{"text":"The WPG parser in ImageMagick before 6.9.4-4 and 7.x before 7.0.1-5, when a memory limit is set, allows remote attackers to have unspecified impact via vectors related to the SetImageExtent return-value check, which trigger (1) a heap-based buffer overflow in the SetPixelIndex function or an invalid write operation in the (2) ScaleCharToQuantum or (3) SetPixelIndex functions.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04824,"percentile":0.92189,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/commits/7.0.1-5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commits/6.9.4-4","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/91283","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://blog.fuzzing-project.org/46-Various-invalid-memory-reads-in-ImageMagick-WPG%2C-DDS%2C-DCM.html","tags":["x_refsource_MISC"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2016/06/17/3","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2016/06/14/5","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":18.44}]},"summary":{"text":"The WPG parser in ImageMagick (versions before 6.9.4-4 and 7.x before 7.0.1-5) contains a flaw in its handling of image extent return values, which can lead to heap-based buffer overflows in SetPixelIndex and invalid writes in ScaleCharToQuantum and SetPixelIndex. A remote attacker can trigger these memory corruption conditions by supplying a crafted WPG image when a memory limit is configured, with the overall impact left unspecified.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:12:21Z"},"euvd":{"id":"EUVD-2016-6631","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2016-5688-family-cve-2016-5688","children":[{"from":"CVE-2016-5688","to":"CVE-2016-7526","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["coders/wpg.c"],"commits":["https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f","https://github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7","https://github.com/ImageMagick/ImageMagick/commit/b6ae2f9e0ab13343c0281732d479757a8e8979c7","https://github.com/ImageMagick/ImageMagick/commit/d9b2209a69ee90d8df81fb124eb66f593eb9f599"],"basis":"shared function","functions":["ReadWPGImage"]}]},{"from":"CVE-2016-5688","to":"CVE-2016-7533","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["coders/wpg.c"],"commits":["https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f","https://github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7","https://github.com/ImageMagick/ImageMagick/commit/bef1e4f637d8f665bc133a9c6d30df08d983bc3a"],"basis":"shared function","functions":["ReadWPGImage"]}]},{"from":"CVE-2016-5688","to":"CVE-2017-14341","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["coders/wpg.c"],"commits":["https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f","https://github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7","https://github.com/ImageMagick/ImageMagick/commit/7d63315a64267c565d1f34b9cb523a14616fed24"],"basis":"shared function","functions":["ReadWPGImage"]}]},{"from":"CVE-2016-5688","to":"CVE-2017-16546","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["coders/wpg.c"],"commits":["https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f","https://github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7","https://github.com/ImageMagick/ImageMagick/commit/e04cf3e9524f50ca336253513d977224e083b816","https://github.com/ImageMagick/ImageMagick/commit/2130bf6f89ded32ef0c88a11694f107c52566c53"],"basis":"shared function","functions":["ReadWPGImage"]}]}]}}