CVE-2017-7890

Summary

CVECVE-2017-7890
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2017-08-02 19:29:00 UTC
Updated2025-04-20 01:37:25 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v3.0 6.5 MEDIUM from [email protected]

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Problem Types: CWE-200 | n/a


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary6.5MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
2.0[email protected]Primary4.3AV:N/AC:M/Au:N/C:P/I:N/A:N

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
None
Availability
None

AV:N/AC:M/Au:N/C:P/I:N/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php 7.0.0 All All All
Application Php Php 7.0.1 All All All
Application Php Php 7.0.10 All All All
Application Php Php 7.0.11 All All All
Application Php Php 7.0.12 All All All
Application Php Php 7.0.13 All All All
Application Php Php 7.0.14 All All All
Application Php Php 7.0.15 All All All
Application Php Php 7.0.16 All All All
Application Php Php 7.0.17 All All All
Application Php Php 7.0.18 All All All
Application Php Php 7.0.19 All All All
Application Php Php 7.0.2 All All All
Application Php Php 7.0.20 All All All
Application Php Php 7.0.3 All All All
Application Php Php 7.0.4 All All All
Application Php Php 7.0.5 All All All
Application Php Php 7.0.6 All All All
Application Php Php 7.0.7 All All All
Application Php Php 7.0.8 All All All
Application Php Php 7.0.9 All All All
Application Php Php 7.1.0 All All All
Application Php Php 7.1.1 All All All
Application Php Php 7.1.2 All All All
Application Php Php 7.1.3 All All All
Application Php Php 7.1.4 All All All
Application Php Php 7.1.5 All All All
Application Php Php 7.1.6 All All All
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
PHP :: Bug #74435 :: Patches af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Issue Tracking, Patch, Vendor Advisory
PHP :: Sec Bug #74435 :: Buffer over-read into uninitialized memory af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Patch, Vendor Advisory
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Debian -- Security Information -- DSA-3938-1 libgd2 af854a3a-2127-422b-91ae-364da2661108 www.debian.org
September 2017 PHP Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
PHP: PHP 7 ChangeLog af854a3a-2127-422b-91ae-364da2661108 php.net Release Notes, Vendor Advisory
[R1] SecurityCenter 5.3.2, 5.4.0, 5.4.2, 5.4.5, 5.5.0, and 5.5.1 Fixes Multiple Vulnerabilities - Security Advisory | Tenable™ af854a3a-2127-422b-91ae-364da2661108 www.tenable.com
PHP 'gd_gif_in.c' Memory Corruption Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com Third Party Advisory, VDB Entry
PHP: PHP 5 ChangeLog af854a3a-2127-422b-91ae-364da2661108 php.net Release Notes, Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report