All vulnerabilities

Servers and applications

CVE-2019-6977

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.

Severity
High 8.8
Published
27 Jan 2019
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
5.6.40, 7.1.26, 7.2.14
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Every version before 5.6.40
  • From 7.0.0 before 7.1.26
  • From 7.2.0 before 7.2.14
  • Version 7.3.0

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2019-6977
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2019-6977