1. Archivio CVE
  2. 2021
  3. CVE-2021-3156

CVE-2021-3156

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

Descrizione

Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
beyondtrust privilege management for mac < 21.1.1 –
beyondtrust privilege management for unix/linux < 10.3.2-10 –
debian debian linux 9.0 –
debian debian linux 10.0 –
fedoraproject fedora 32 –
fedoraproject fedora 33 –
mcafee web gateway 8.2.17 –
mcafee web gateway 9.2.8 –
mcafee web gateway 10.0.4 –
netapp active iq unified manager tutte vmware_vsphere
netapp cloud backup tutte –
netapp hci management node tutte –
netapp oncommand unified manager core package tutte –
netapp ontap select deploy administration utility tutte –
netapp ontap tools 9 vmware_vsphere
netapp solidfire tutte –
oracle communications performance intelligence center >= 10.3.0.0.0 <= 10.3.0.2.1 –
oracle communications performance intelligence center >= 10.4.0.1.0 <= 10.4.0.3.1 –
oracle micros compact workstation 3 firmware 310 –
oracle micros es400 firmware >= 400 <= 410 –
oracle micros kitchen display system firmware 210 –
oracle micros workstation 5a firmware 5a –
oracle micros workstation 6 firmware >= 610 <= 655 –
oracle tekelec platform distribution >= 7.4.0 <= 7.7.1 –
sudo project sudo >= 1.8.2 < 1.8.32 –
sudo project sudo >= 1.9.0 < 1.9.5 –
sudo project sudo 1.9.5 –
sudo project sudo 1.9.5 patch1 –
synology diskstation manager 6.2 –
synology diskstation manager unified controller 3.0 –
synology skynas firmware tutte –
synology vs960hd firmware tutte –
Tutte le 25 vulnerabilità di Sudo Project Sudo

Tipo di vulnerabilità

CWE-193 Off-by-one Error

A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

Impatto sui sistemi

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

Come si previene

Sviluppo When copying character arrays or using character manipulation methods, the correct size parameter must be used to account for the null terminator that needs to be added at the end of the array. Some examples of functions susceptible to this weakness in C include strcpy(), strncpy(), strcat(), strncat(), printf(), sprintf(), scanf() and sscanf().

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

Tutte le 233 CVE di tipo CWE-193, con andamento e prevenzione

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