1. Archivio CVE
  2. 2012
  3. CVE-2012-0809

CVE-2012-0809

7.2 Gravità alta CVSS v2.0 · fonte NVD AV:L/AC:L/Au:N/C:C/I:C/A:C 7.2 – Alta

Descrizione

Format string vulnerability in the sudo_debug function in Sudo 1.8.0 through 1.8.3p1 allows local users to execute arbitrary code via format string sequences in the program name for sudo.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
todd miller sudo 1.8.0 –
todd miller sudo 1.8.1 –
todd miller sudo 1.8.1p1 –
todd miller sudo 1.8.1p2 –
todd miller sudo 1.8.2 –
todd miller sudo 1.8.3 –
todd miller sudo 1.8.3p1 –
Tutte le 29 vulnerabilità di Todd Miller Sudo

Tipo di vulnerabilità

CWE-134 Stringa di formato controllata dall’esterno (format string)

Il prodotto usa una funzione che accetta una stringa di formato, ma quella stringa proviene da una fonte esterna.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere la memoria
Integrità, Riservatezza, Disponibilità Modificare la memoria, Eseguire codice o comandi non autorizzati

Come si previene

Requisiti Choose a language that is not subject to this flaw.
Sviluppo Ensure that all format string functions are passed a static string which cannot be controlled by the user, and that the proper number of arguments are always sent to that function as well. If at all possible, use functions that do not support the %n operator in format strings.
Build e compilazione Run compilers and linkers with high warning levels, since they may detect incorrect usage.

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

Tutte le 435 CVE di tipo CWE-134, con andamento e prevenzione

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