Live threats

All CVEs / Php

CVE-2017-7890Php

Medium 6.5 No auth needed

Priority
54
CVSS 3.0
6.5
EPSS
3.4%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Aug 2, 2017
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-200
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≤ 5.6.30
phpphp7.0.0
phpphp7.0.1
phpphp7.0.2
phpphp7.0.3
phpphp7.0.4
phpphp7.0.5
phpphp7.0.6
phpphp7.0.7
phpphp7.0.8
phpphp7.0.9
phpphp7.0.10
phpphp7.0.11
phpphp7.0.12
phpphp7.0.13
phpphp7.0.14
phpphp7.0.15
phpphp7.0.16
phpphp7.0.17
phpphp7.0.18
phpphp7.0.19
phpphp7.0.20
phpphp7.1.0
phpphp7.1.1
phpphp7.1.2
phpphp7.1.3
phpphp7.1.4
phpphp7.1.5
phpphp7.1.6

Official sources

References

Links published by the sources. Open them with care.