1. Archivio CVE
  2. 2014
  3. CVE-2014-2497

CVE-2014-2497

4.3 Gravità media CVSS v2.0 · fonte NVD AV:N/AC:M/Au:N/C:N/I:N/A:P 4.3 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
canonical ubuntu linux 15.10 –
canonical ubuntu linux 16.04 –
debian debian linux 7.0 –
debian debian linux 8.0 –
oracle solaris 11.2 –
php php < 5.4.32 –
php php >= 5.5.0 < 5.5.16 –
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 –
suse linux enterprise server 11 sp2 –
suse linux enterprise server 11 sp3 –
suse linux enterprise server 11 sp3 vmware
suse linux enterprise software development kit 11 sp3 –
Tutte le 757 vulnerabilità di Php

Tipo di vulnerabilità

CWE-476 Dereferenziazione di un puntatore NULL

Il prodotto usa un puntatore che si aspetta valido ma che in realtà è NULL, di solito causando un arresto anomalo.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio
Integrità, Riservatezza Eseguire codice o comandi non autorizzati, Leggere la memoria, Modificare la memoria

Come si previene

Sviluppo For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
Requisiti Select a programming language that is not susceptible to these issues.
Sviluppo Check the results of all functions that return a value and verify that the value is non-null before acting upon it.
Architettura e progettazione Identify all variables and data stores that receive information from external sources, and apply input validation to make sure that they are only initialized to expected values.
Sviluppo Explicitly initialize all variables and other data stores, either during declaration or just before the first usage.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 5.787 CVE di tipo CWE-476, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org