CVE-2017-7890

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.

References

http://php.net/ChangeLog-5.php

http://php.net/ChangeLog-7.php

http://www.debian.org/security/2017/dsa-3938

http://www.securityfocus.com/bid/99492

https://access.redhat.com/errata/RHSA-2018:0406

https://access.redhat.com/errata/RHSA-2018:1296

https://bugs.php.net/bug.php?id=74435

https://bugs.php.net/patch-display.php?bug=74435&patch=fix-74435-php-7.0&revision=1497970038

https://security.netapp.com/advisory/ntap-20180112-0001/

https://www.tenable.com/security/tns-2017-12

Details

Source: MITRE

Published: 2017-08-02

Updated: 2018-05-04

Type: CWE-200

Risk Information

CVSS v2.0

Base Score: 4.3

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

Impact Score: 2.9

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3.0

Base Score: 6.5

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

Impact Score: 3.6

Exploitability Score: 2.8

Severity: MEDIUM