Descrizione
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling a wide range of attacks from heap overflow to remote code execution. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.
Tipo di vulnerabilità
CWE-123
Write-what-where Condition
Any condition where the attacker has the ability to write an arbitrary value to an arbitrary location, often as the result of a buffer overflow.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza, Disponibilità, Controllo degli accessi |
Modificare la memoria, Eseguire codice o comandi non autorizzati, Ottenere privilegi o assumere un’altra identità, Interruzione del servizio: arresto o riavvio, Aggirare i meccanismi di protezione |
| Integrità, Disponibilità |
Interruzione del servizio: arresto o riavvio, Modificare la memoria |
| Controllo degli accessi, Altro |
Aggirare i meccanismi di protezione, Altro |
Come si previene
Architettura e progettazione · Scelta del linguaggio
Use a language that provides appropriate memory abstractions.
Esercizio
Use OS-level preventative functionality integrated after the fact. Not a complete solution.
Tutte le 42 CVE di tipo CWE-123, con andamento e prevenzione