Descrizione
In xmlIO in libxml2 before 2.15.4, an inconsistency in xmlOutputWriteCallback and xmlBufUse causes negative lengths to reach write callbacks, aka a lack of a check for integer overflow before calling writecallback. This has security relevance for many types of uses of that length value within a callback.
Tipo di vulnerabilità
CWE-192
Integer Coercion Error
Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità |
Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: arresto o riavvio |
| Integrità, Riservatezza, Disponibilità |
Eseguire codice o comandi non autorizzati |
| Integrità, Altro |
Altro |
Come si previene
Requisiti
A language which throws exceptions on ambiguous data casts might be chosen.
Architettura e progettazione
Design objects and program flow such that multiple or complex casts are unnecessary
Sviluppo
Ensure that any data type casting that you must use is entirely understood in order to reduce the plausibility of error in use.
Tutte le 2 CVE di tipo CWE-192, con andamento e prevenzione