Security mailing lists by PureSourceCode

CVE-2019-6977

HIGH 8.8CVSS 3.0

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.

Published
27 Jan 2019
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-787
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 HIGH 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD libgd libgd
cpe:2.3:a:libgd:libgd:2.2.5:*:*:*:*:*:*:*
= 2.2.5
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
< 5.6.40 5.6.40
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.0.0, < 7.1.26 7.1.26
NVD php php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.2.0, < 7.2.14 7.2.14
NVD php php
cpe:2.3:a:php:php:7.3.0:*:*:*:*:*:*:*
= 7.3.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
= 14.04
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
= 16.04
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
= 18.04
NVD canonical ubuntu_linux
cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
= 18.10
NVD netapp storage_automation_store
cpe:2.3:a:netapp:storage_automation_store:*:*:*:*:*:*:*:*
all versions

References

History

  • 25 Nov 2026 20:21 UTC · NVD: first stored (published 27 Jan 2019)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.