First published: Thu Jul 06 2017(Updated: )
The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/php | <5.6.31 | 5.6.31 |
redhat/php | <7.0.21 | 7.0.21 |
redhat/php | <7.1.7 | 7.1.7 |
PHP | <7.0.21 | 7.0.21 |
PHP | <=5.6.30 | |
PHP | =7.0.0 | |
PHP | =7.0.1 | |
PHP | =7.0.2 | |
PHP | =7.0.3 | |
PHP | =7.0.4 | |
PHP | =7.0.5 | |
PHP | =7.0.6 | |
PHP | =7.0.7 | |
PHP | =7.0.8 | |
PHP | =7.0.9 | |
PHP | =7.0.10 | |
PHP | =7.0.11 | |
PHP | =7.0.12 | |
PHP | =7.0.13 | |
PHP | =7.0.14 | |
PHP | =7.0.15 | |
PHP | =7.0.16 | |
PHP | =7.0.17 | |
PHP | =7.0.18 | |
PHP | =7.0.19 | |
PHP | =7.0.20 | |
PHP | =7.1.0 | |
PHP | =7.1.1 | |
PHP | =7.1.2 | |
PHP | =7.1.3 | |
PHP | =7.1.4 | |
PHP | =7.1.5 | |
PHP | =7.1.6 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2017-7890 is classified as a medium severity vulnerability due to the potential for information disclosure.
To fix CVE-2017-7890, upgrade to PHP version 5.6.31 or 7.0.21 or later.
CVE-2017-7890 affects PHP versions prior to 5.6.31, 7.0.20, and 7.1.6.
An attacker can exploit CVE-2017-7890 to retrieve sensitive information from server memory by providing a crafted GIF image.
CVE-2017-7890 can be exploited remotely by an attacker through the upload and processing of a malicious GIF file.