CVE-2017-7890Sensitive Information Exposure in Libgd2

Severity
6.5MEDIUMNVD
EPSS
28.1%
top 3.51%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedAug 2
Latest updateMay 14

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.

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NExploitability: 2.8 | Impact: 3.6

Affected Packages2 packages

debiandebian/libgd2< libgd2 2.2.5-1 (bookworm)
NVDphp/php5.6.30+28

Patches

🔴Vulnerability Details

2
GHSA
GHSA-2cx4-qmrc-3ff4: The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in2022-05-14
OSV
CVE-2017-7890: The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in2017-08-02

📋Vendor Advisories

4
Ubuntu
GD vulnerability2017-08-14
Ubuntu
GD vulnerability2017-08-14
Red Hat
php: Buffer over-read from unitialized data in gdImageCreateFromGifCtx function2017-07-10
Debian
CVE-2017-7890: libgd2 - The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graph...2017

💬Community

2
Bugzilla
CVE-2017-7890 php: Buffer over-read from unitialized data in gdImageCreateFromGifCtx function [fedora-all]2017-07-21
Bugzilla
CVE-2017-7890 php: Buffer over-read from unitialized data in gdImageCreateFromGifCtx function2017-07-21
CVE-2017-7890 — Sensitive Information Exposure | cvebase