CVE-2017-7890
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-7890
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-7890.html
Vendor advisory: cve@mitre.org — https://bugs.php.net/patch-display.php?bug=74435&patch=fix-74435-php-7.0&revision=1497970038
Vendor advisory: cve@mitre.org — https://bugs.php.net/bug.php?id=74435
Vendor advisory: cve@mitre.org — http://php.net/ChangeLog-7.php
Vendor advisory: cve@mitre.org — http://php.net/ChangeLog-5.php
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | bookworm | fixed | 2.2.5-1 |
| debian | bullseye | fixed | 2.2.5-1 |
| debian | forky | fixed | 2.2.5-1 |
| debian | sid | fixed | 2.2.5-1 |
| debian | trixie | fixed | 2.2.5-1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| php | php | {"endIncluding":"5.6.30"} | |
| php | php | 7.0.0 | |
| php | php | 7.0.1 | |
| php | php | 7.0.2 | |
| php | php | 7.0.3 | |
| php | php | 7.0.4 | |
| php | php | 7.0.5 | |
| php | php | 7.0.6 | |
| php | php | 7.0.7 | |
| php | php | 7.0.8 | |
| php | php | 7.0.9 | |
| php | php | 7.0.10 | |
| php | php | 7.0.11 | |
| php | php | 7.0.12 | |
| php | php | 7.0.13 | |
| php | php | 7.0.14 | |
| php | php | 7.0.15 | |
| php | php | 7.0.16 | |
| php | php | 7.0.17 | |
| php | php | 7.0.18 | |
| php | php | 7.0.19 | |
| php | php | 7.0.20 | |
| php | php | 7.1.0 | |
| php | php | 7.1.1 | |
| php | php | 7.1.2 | |
| php | php | 7.1.3 | |
| php | php | 7.1.4 | |
| php | php | 7.1.5 | |
| php | php | 7.1.6 | |
References
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://www.debian.org/security/2017/dsa-3938
- http://www.securityfocus.com/bid/99492
- https://access.redhat.com/errata/RHSA-2018:0406
- https://access.redhat.com/errata/RHSA-2018:1296
- https://bugs.php.net/bug.php?id=74435
- https://bugs.php.net/patch-display.php?bug=74435&patch=fix-74435-php-7.0&revision=1497970038
- https://security.netapp.com/advisory/ntap-20180112-0001/
- https://www.tenable.com/security/tns-2017-12
- https://www.suse.com/security/cve/CVE-2017-7890.html
- https://security-tracker.debian.org/tracker/CVE-2017-7890
CWEs
CWE-200
Verify integrity in audit chain (admin only). AS-IS.