1. Archivio CVE
  2. 2026
  3. CVE-2026-93019

CVE-2026-93019

9.1 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H 9.1 – Critica

Descrizione

Imager versions before 1.036 for Perl exit the process reading a TGA with a colour map length of 32768 or more in tga_palette_read. The reader unpacks the two-byte colour map length into a signed short, so a length of 32768 or more becomes negative. tga_palette_read() casts that value to size_t and asks mymalloc() for a size near SIZE_MAX. The allocation fails and Imager's allocator calls exit(3). Reading an attacker-supplied file through Imager->read() triggers an uncatchable exit.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
– imager < 1.036 –

Tipo di vulnerabilità

CWE-196 Unsigned to Signed Conversion Error

The product uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value if the value of the unsigned primitive can not be represented using a signed primitive.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio
Integrità Modificare la memoria
Integrità, Riservatezza, Disponibilità, Controllo degli accessi Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione

Come si previene

Requisiti Choose a language which is not subject to these casting flaws.
Architettura e progettazione Design object accessor functions to implicitly check values for valid sizes. Ensure that all functions which will be used as a size are checked previous to use as a size. If the language permits, throw exceptions rather than using in-band errors.
Sviluppo Error check the return values of all functions. Be aware of implicit casts made, and use unsigned variables for sizes if at all possible.

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

Tutte le 6 CVE di tipo CWE-196, con andamento e prevenzione

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