1. CVE archive
  2. 2017
  3. CVE-2017-7890

CVE-2017-7890

6.5 Medium severity CVSS v3.0 · source NVD CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N 6.5 – Medium

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

VendorProductVersionPlatform
php php <= 5.6.30 –
php php 7.0.0 –
php php 7.0.1 –
php php 7.0.2 –
php php 7.0.3 –
php php 7.0.4 –
php php 7.0.5 –
php php 7.0.6 –
php php 7.0.7 –
php php 7.0.8 –
php php 7.0.9 –
php php 7.0.10 –
php php 7.0.11 –
php php 7.0.12 –
php php 7.0.13 –
php php 7.0.14 –
php php 7.0.15 –
php php 7.0.16 –
php php 7.0.17 –
php php 7.0.18 –
php php 7.0.19 –
php php 7.0.20 –
php php 7.1.0 –
php php 7.1.1 –
php php 7.1.2 –
php php 7.1.3 –
php php 7.1.4 –
php php 7.1.5 –
php php 7.1.6 –
All 757 Php vulnerabilities

Vulnerability type

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Impact on systems

ScopeImpact
Confidentiality Read Application Data

How to prevent it

Architecture and Design · Separation of Privilege Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

All 11,923 CWE-200 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org