Skip to content
Noroxi
CVE-2017-7890· NVD / CVE Program· CNA mitre

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.

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.

MediumCVSS 6.5 · v3.0—No exploit Fix available
Published
Aug 2, 2017
Updated
Jun 16, 2026
EPSS
3.4% · 88th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

27

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.4%

Affected systems

VendorProduct
phpphp

Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • php phpup to 5.6.30 inclusive
  • php php7.0.0
  • php php7.0.1
  • php php7.0.10
  • php php7.0.11
  • php php7.0.12
  • php php7.0.13
  • php php7.0.14
  • php php7.0.15
  • php php7.0.16
  • php php7.0.17
  • php php7.0.18
  • php php7.0.19
  • php php7.0.2
  • php php7.0.20
  • php php7.0.3
  • php php7.0.4
  • php php7.0.5
  • php php7.0.6
  • php php7.0.7

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.4gdbefore 2.2.5-r02.2.5-r0
Debian:12libgd2before 2.2.5-12.2.5-1
Debian:7libgd2before 2.0.36~rc1~dfsg-6.1+deb7u92.0.36~rc1~dfsg-6.1+deb7u9
Debian:8libgd2before 2.1.0-5+deb8u102.1.0-5+deb8u10
Debian:9libgd2before 2.2.4-2+deb9u12.2.4-2+deb9u1
openSUSE:Tumbleweedgdbefore 2.3.3-1.12.3.3-1.1
Red Hat:enterprise_linux:7::clientphpbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-bcmathbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-clibefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-commonbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-dbabefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-debuginfobefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-develbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-embeddedbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-enchantbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-fpmbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-gdbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-intlbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-ldapbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-mbstringbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-mysqlbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-mysqlndbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-odbcbefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1
Red Hat:enterprise_linux:7::clientphp-pdobefore 0:5.4.16-43.el7_4.10:5.4.16-43.el7_4.1

+12

Same product

php: all records

Other highest-scoring records for the same primary product.

  • CVE-2024-4577Argument Injection in PHP-CGIKEV
    99Now
  • CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV
    99Now
  • CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle queKEV
    99Now
  • CVE-2018-7584In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while pa
    65This week
  • CVE-2018-19518University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh command (by means of
    59Plan
  • CVE-2016-3078Multiple integer overflows in php_zip.c in the zip extension in PHP before 7.0.6 allow remote attackers to cause a denial of service (heap-b
    56Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:gd2.2.5-r0 · Alpine:v3.4Package registry (OSV)
debian:libgd22.2.5-1 · Debian:12Package registry (OSV)
opensuse:gd2.3.3-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:php0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-bcmath0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-cli0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-common0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-dba0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-debuginfo0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-devel0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-embedded0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-enchant0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-fpm0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-gd0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:php-intl0:5.4.16-43.el7_4.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
suse:gd2.1.0-24.17.1 · SUSE:Linux Enterprise Desktop 12 SP4Package registry (OSV)
suse:php55.5.14-109.5.1 · SUSE:Linux Enterprise Module for Web and Scripting 12Package registry (OSV)
suse:php535.3.17-112.5.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)
suse:php77.0.7-50.9.2 · SUSE:Linux Enterprise Module for Web and Scripting 12Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
none
Availability
none
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
High
Integrity impact
None
Availability impact
None

CVSS vector

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

nvd-primary

Root cause

The extension requests broader permissions than its function needs and sends the data it collects out for purposes beyond its stated function.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

json
{  "permissions": ["tabs", "<all_urls>"],  "background": { "service_worker": "analytics.js" }}

Fixed

json
{  "permissions": ["activeTab"],  "host_permissions": ["https://yildiz.example/*"]}

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records