CVE-2014-2497: The gdImageCreateFromXpm function in gdxpm.c in libgd, as used in PHP 5.4.26 and earlier, allows remote attackers to cause a denial of se…

CVE-2014-2497 affects 40 listed versions of PHP in the Dawnsentry catalogue.

4.3CVSS medium
None knownexploitation
20%EPSS (next 30 days)
21 March 2014published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

40 of 250 listed versions are affected. Fixed in 5.4.32. The newest release, 8.6.0, is not affected.

5.4.31 5.3.29 5.3.28 5.3.27 5.3.26 5.3.25 5.3.24 5.3.23 5.3.22 5.3.21 5.3.20 5.3.19 5.3.18 5.3.17 5.3.16 5.3.15 5.2.17 5.2.16 5.2.15 5.2.14 5.2.13 5.2.12 5.2.11 5.2.10 5.2.9 5.2.8 5.2.7 5.2.6 5.2.5 5.2.4 5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4

What it is

The gdImageCreateFromXpm function in gdxpm.c in libgd, as used in PHP 5.4.26 and earlier, allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted color table in an XPM file.

AV:N/AC:M/Au:N/C:N/I:N/A:P (NVD)

Published by MITRE on 21 March 2014. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2014-2497 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.