HTTP: PHP gdImageCreateFromGifCtx Out of Bounds Read

An out of bounds read vulnerability has been reported in PHP. A remote attacker could exploit this vulnerability by supplying a crafted image file to an application using the affected function. Successful exploitation of this vulnerability could lead to information disclosure.

Extended 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.

Affected Products

Php php

References

CVE: CVE-2017-7890

Short Name
HTTP:PHP:PHP-OUTOFBOUND
Severity
Major
Recommended
True
Recommended Action
Drop
Category
HTTP
Keywords
Bounds CVE-2017-7890 Out PHP Read gdImageCreateFromGifCtx of
Release Date
07/27/2017
Supported Platforms

srx-branch-12.3

srx-19.3

srx-branch-19.3

vsrx3bsd-19.2

srx-branch-19.4

vsrx-19.4

mx-12.3

mx-19.4

vmx-19.4

mx-19.3

vsrx3bsd-19.4

srx-19.4

vsrx-12.3

vmx-19.3

vsrx-19.2

srx-12.3

Sigpack Version
3375
False Positive
Unknown
Vendors

Php

CVSS Score

4.3

Found a potential security threat?