nday
CVE-2019-6977

PHP: buffer overflow / out-of-bounds writeTitle composed by nday; the CVE record has none.

A public PoC appeared 31 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: exploitdb. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

network
AV:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
no authentication required
PR:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.0) from NVD's analysts
Exploit-DB
Exploit-DB entries 46677
PHP
CPE names NVD's analysts give as vulnerable: a:php:php
open-source library / framework
CPE names NVD's analysts give as vulnerable: a:php:phpthe product type of PHP in nday's product registry
stage
POC
disclosed
disclosure → PoC
T+31d POC is date-only
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2019-01-27T02:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2019-02-27, date only
ITWexploited
no record yet
KEVKEV
no record yet

Summary

gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolormatch function in PHP before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.1, has a heap-based buffer overflow. This can be exploited by an attacker who is able to trigger imagecolormatch calls with crafted image data.

Original text of the CVE record (cvelist), shown as published.

Event log

+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 66405,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2019-6977",
  "occurred_at": "2019-01-27T02:00:00Z",
  "observed_at": "2026-11-12T23:01:25.305088Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2019-01-27T02:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}
2019-02-27date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “PHP 7.2 - 'imagecolormatch()' Out of Band Heap Write” (EDB-46677).

src exploitdb 46677 · nday , bulk import · raw
{
  "id": 28762,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/46677",
  "occurred_at": "2019-02-27T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "46677",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/46677",
    "file": "exploits/php/remote/46677.php",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "PHP 7.2 - 'imagecolormatch()' Out of Band Heap Write",
    "author": "cfreal",
    "edb_id": 46677,
    "cve_ids": [
      "CVE-2019-6977"
    ],
    "platform": "php",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2019-04-09",
    "date_updated": "2019-04-09",
    "date_published": "2019-02-27"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.