Skip to content
Fencer Intel
medium 4.3

CVE-2014-2497 json

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 serv…

published 2014-03-21 12 y ago modified 2026-06-17 4 mo ago also EUVD-2014-2533

cvss
4.3
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
20.3%
EPSS 20.3% chance of exploitation in 30 days, percentile 97%
public exploits
0
none known

Summary

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.

Patch / fix

  • php php 5.4.32, 5.5.16
  • libgd2 Debian 14, Debian 13, Debian 12 2.1.0-4

debian advisories DEBIAN-CVE-2014-2497

  • libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.1

ubuntu advisories UBUNTU-CVE-2014-2497

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • php RHEL 7 5.4.16-23.el7_0.1
  • php-gd RHEL 7 5.4.16-23.el7_0.1
  • php-cli RHEL 7 5.4.16-23.el7_0.1
  • php-dba RHEL 7 5.4.16-23.el7_0.1
  • php-fpm RHEL 7 5.4.16-23.el7_0.1
  • php-pdo RHEL 7 5.4.16-23.el7_0.1
  • php-xml RHEL 7 5.4.16-23.el7_0.1
  • php-intl RHEL 7 5.4.16-23.el7_0.1

red hat advisories RHSA-2014:1327RHSA-2014:1326RHSA-2014:1766RHSA-2014:1765

  • gd openSUSE Tumbleweed 2.2.3-2.1
  • php7 openSUSE Tumbleweed 7.0.14-1.4
  • php5 openSUSE Tumbleweed 5.6.28-1.1
  • php8 openSUSE Tumbleweed 8.0.11-1.1

opensuse advisories openSUSE-SU-2024:10062-1openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1openSUSE-SU-2024:11169-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2014-2497 updated cvss 2.6

gd: NULL pointer dereference in gdImageCreateFromXpm()

  • Red Hat Enterprise Linux 5 gd Red Hat Enterprise Linux 6 gd, gd-progs Red Hat Enterprise Linux 7 gd, gd-progs
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux (v. 5 server) php53 5.3.3-24.el5, php53-gd 5.3.3-24.el5, php53-cli 5.3.3-24.el5, php53-dba 5.3.3-24.el5, php53-pdo 5.3.3-24.el5, php53-xml 5.3.3-24.el5, +14 more
    fixed: vendor fix RHSA-2014:1326
  • Red Hat Enterprise Linux Client Optional (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, +18 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, +18 more
    fixed: vendor fix RHSA-2014:1327
  • Red Hat Enterprise Linux Desktop Optional (v. 6) php 5.3.3-27.el6_5.2, php-gd 5.3.3-27.el6_5.2, php-cli 5.3.3-27.el6_5.2, php-dba 5.3.3-27.el6_5.2, php-fpm 5.3.3-27.el6_5.2, php-pdo 5.3.3-27.el6_5.2, +20 more Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php53 5.3.3-24.el5, php53-gd 5.3.3-24.el5, php53-cli 5.3.3-24.el5, php53-dba 5.3.3-24.el5, php53-pdo 5.3.3-24.el5, php53-xml 5.3.3-24.el5, +14 more Red Hat Enterprise Linux HPC Node (v. 6) php 5.3.3-27.el6_5.2, php-cli 5.3.3-27.el6_5.2, php-common 5.3.3-27.el6_5.2 Red Hat Enterprise Linux HPC Node Optional (v. 6) php 5.3.3-27.el6_5.2, php-gd 5.3.3-27.el6_5.2, php-dba 5.3.3-27.el6_5.2, php-fpm 5.3.3-27.el6_5.2, php-pdo 5.3.3-27.el6_5.2, php-xml 5.3.3-27.el6_5.2, +18 more Red Hat Enterprise Linux Server (v. 6) php 5.3.3-27.el6_5.2, php-gd 5.3.3-27.el6_5.2, php-cli 5.3.3-27.el6_5.2, php-pdo 5.3.3-27.el6_5.2, php-xml 5.3.3-27.el6_5.2, php-ldap 5.3.3-27.el6_5.2, +6 more
    fixed: vendor fix RHSA-2014:1326
  • Red Hat Enterprise Linux Server (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, php-xml 5.4.16-23.el7_0.1, php-ldap 5.4.16-23.el7_0.1, +8 more
    fixed: vendor fix RHSA-2014:1327
  • Red Hat Enterprise Linux Server Optional (v. 6) php 5.3.3-27.el6_5.2, php-dba 5.3.3-27.el6_5.2, php-fpm 5.3.3-27.el6_5.2, php-zts 5.3.3-27.el6_5.2, php-imap 5.3.3-27.el6_5.2, php-intl 5.3.3-27.el6_5.2, +9 more
    fixed: vendor fix RHSA-2014:1326
  • Red Hat Enterprise Linux Server Optional (v. 7) php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-intl 5.4.16-23.el7_0.1, php-snmp 5.4.16-23.el7_0.1, php-bcmath 5.4.16-23.el7_0.1, php-pspell 5.4.16-23.el7_0.1, +4 more
    fixed: vendor fix RHSA-2014:1327
  • Red Hat Enterprise Linux Workstation (v. 6) php 5.3.3-27.el6_5.2, php-gd 5.3.3-27.el6_5.2, php-cli 5.3.3-27.el6_5.2, php-pdo 5.3.3-27.el6_5.2, php-xml 5.3.3-27.el6_5.2, php-ldap 5.3.3-27.el6_5.2, +6 more
    fixed: vendor fix RHSA-2014:1326
show 5 more
  • Red Hat Enterprise Linux Workstation (v. 7) php 5.4.16-23.el7_0.1, php-gd 5.4.16-23.el7_0.1, php-cli 5.4.16-23.el7_0.1, php-pdo 5.4.16-23.el7_0.1, php-xml 5.4.16-23.el7_0.1, php-ldap 5.4.16-23.el7_0.1, +8 more
    fixed: vendor fix RHSA-2014:1327
  • Red Hat Enterprise Linux Workstation Optional (v. 6) php 5.3.3-27.el6_5.2, php-dba 5.3.3-27.el6_5.2, php-fpm 5.3.3-27.el6_5.2, php-zts 5.3.3-27.el6_5.2, php-imap 5.3.3-27.el6_5.2, php-intl 5.3.3-27.el6_5.2, +9 more
    fixed: vendor fix RHSA-2014:1326
  • Red Hat Enterprise Linux Workstation Optional (v. 7) php-dba 5.4.16-23.el7_0.1, php-fpm 5.4.16-23.el7_0.1, php-intl 5.4.16-23.el7_0.1, php-snmp 5.4.16-23.el7_0.1, php-bcmath 5.4.16-23.el7_0.1, php-pspell 5.4.16-23.el7_0.1, +4 more
    fixed: vendor fix RHSA-2014:1327
  • Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) php55-php 5.5.6-13.el7, php54-php 5.4.16-22.el7, php55-php-gd 5.5.6-13.el7, php54-php-gd 5.4.16-22.el7, php55-php-cli 5.5.6-13.el7, php55-php-dba 5.5.6-13.el7, +40 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.4) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.5) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.6) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) php55-php 5.5.6-13.el6, php54-php 5.4.16-22.el6, php55-php-gd 5.5.6-13.el6, php54-php-gd 5.4.16-22.el6, php55-php-cli 5.5.6-13.el6, php55-php-dba 5.5.6-13.el6, +44 more
    +1 more products
    Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) php55-php 5.5.6-13.el7, php54-php 5.4.16-22.el7, php55-php-gd 5.5.6-13.el7, php54-php-gd 5.4.16-22.el7, php55-php-cli 5.5.6-13.el7, php55-php-dba 5.5.6-13.el7, +40 more
    fixed: vendor fix RHSA-2014:1765
  • Red Hat Enterprise Linux 5 php, libwmf Red Hat Enterprise Linux 6 libwmf, libwmf-lite Red Hat Enterprise Linux 7 libwmf, libwmf-lite
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

20.27% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • bugs.php.net https://bugs.php.net/bug.php?id=66901 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.