CVE-2017-7890

php: Buffer over-read from unitialized data in gdImageCreateFromGifCtx function

Published Aug 2, 2017 CVSS 3.0 · 6.5 Medium EPSS 3.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1055-1 libgd2 security update
Debian DSA Debian DSA DSA-3938-1 libgd2 security update
EUVD EUVD EUVD-2017-16862 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.
Ubuntu USN Ubuntu USN USN-3389-1 GD vulnerability
Ubuntu USN Ubuntu USN USN-3389-2 GD vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 4:19 PM
Reserved
Apr 17, 2017, 12:00 AM
Status
Modified
Published
Aug 2, 2017, 7:29 PM
Modified
Jun 17, 2026, 1:25 AM
Severity
Moderate
Public date
Jul 10, 2017, 12:00 AM