CVE-2014-2497: Null Pointer Dereference

Published Mar 14, 2014
·
Updated

It was reported [1] that the gdImageCreateFromXpm() function in libgd could dereference a NULL pointer, noting:

"The call to strlen() parses image.colorTable[i].ccolor which is initialised as NULL if the particular color mapping uses a different key (such as monochrome/monovisual)."

This was reported against PHP, which includes an embedded copy of the gd library. CVE-2014-2497 was assigned to this issue [2].

[1] https://bugs.php.net/bug.php?id=66901 [2] http://seclists.org/oss-sec/2014/q1/580

Other sources

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.

MITRE

Affected Software

34 affected componentsFixes available
redhat/php<5.5.16
5.5.16
redhat/php<5.4.32
5.4.32
PHP PHP<5.4.32
PHP PHP>=5.5.0<5.5.16
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=15.10
Canonical Ubuntu Linux=16.04
SUSE Linux Enterprise Server=11-sp2
SUSE Linux Enterprise Server=11-sp3
SUSE Linux Enterprise Server Vmware=11-sp3
SUSE Linux Enterprise Software Development Kit=11-sp3
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Eus=6.5
redhat Enterprise Linux Eus=7.3
redhat Enterprise Linux Eus=7.4
redhat Enterprise Linux Eus=7.5
redhat Enterprise Linux Eus=7.6
redhat Enterprise Linux Eus=7.7
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=6.5
redhat Enterprise Linux Server Aus=7.3
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Tus=6.5
redhat Enterprise Linux Server Tus=7.3
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Server Tus=7.7
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Oracle Solaris=11.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.5.16
  2. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.4.32

Event History

Mar 21, 2014
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
via NVD·02:55 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2014-2497?

CVE-2014-2497 has been classified as a medium severity vulnerability due to the potential for denial of service.

2

How do I fix CVE-2014-2497?

To fix CVE-2014-2497, upgrade to PHP version 5.4.32 or 5.5.16 or later.

3

Which versions of PHP are affected by CVE-2014-2497?

CVE-2014-2497 affects PHP versions prior to 5.4.32 and between 5.5.0 and 5.5.16.

4

What function in libgd is related to CVE-2014-2497?

The vulnerability in CVE-2014-2497 is related to the gdImageCreateFromXpm() function in libgd.

5

On which operating systems can CVE-2014-2497 be found?

CVE-2014-2497 can be found in various Linux distributions including Red Hat, Ubuntu, and SUSE.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2014-2497 - Null Pointer Dereference - SecAlerts