Information disclosure in PHP

CVE-2017-7890

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.

Vulnerability class: Information Disclosure

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.

EPSS exploit prediction

EPSS 0.034, 89.1th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • PHP — versions 7.0.0, 7.0.1, 7.0.2

Weakness classification (CWE)

References