CVE-2017-7890

medium
Published 2017-08-02 · Modified 2026-05-13
CVSS v3
6.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS v2
4.3
VIR risk
6.5

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

Exploit likelihood
75%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-7890

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-7890.html

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://bugs.php.net/patch-display.php?bug=74435&patch=fix-74435-php-7.0&revision=1497970038

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://bugs.php.net/bug.php?id=74435

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — http://php.net/ChangeLog-7.php

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — http://php.net/ChangeLog-5.php

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed2.2.5-1
debian debianbullseyefixed2.2.5-1
debian debianforkyfixed2.2.5-1
debian debiansidfixed2.2.5-1
debian debiantrixiefixed2.2.5-1

Application impact

VendorProductVersionsFixed
php phpphp{"endIncluding":"5.6.30"}
php phpphp7.0.0
php phpphp7.0.1
php phpphp7.0.2
php phpphp7.0.3
php phpphp7.0.4
php phpphp7.0.5
php phpphp7.0.6
php phpphp7.0.7
php phpphp7.0.8
php phpphp7.0.9
php phpphp7.0.10
php phpphp7.0.11
php phpphp7.0.12
php phpphp7.0.13
php phpphp7.0.14
php phpphp7.0.15
php phpphp7.0.16
php phpphp7.0.17
php phpphp7.0.18
php phpphp7.0.19
php phpphp7.0.20
php phpphp7.1.0
php phpphp7.1.1
php phpphp7.1.2
php phpphp7.1.3
php phpphp7.1.4
php phpphp7.1.5
php phpphp7.1.6

References

CWEs

CWE-200

Verify integrity in audit chain (admin only). AS-IS.