1. Archivio CVE
  2. 2022
  3. CVE-2022-24051

CVE-2022-24051

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

MariaDB CONNECT Storage Engine Format String Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of MariaDB. Authentication is required to exploit this vulnerability. The specific flaw exists within the processing of SQL queries. The issue results from the lack of proper validation of a user-supplied string before using it as a format specifier. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-16193.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
fedoraproject fedora 34 –
fedoraproject fedora 35 –
fedoraproject fedora 36 –
mariadb mariadb >= 10.2.0 < 10.2.42 –
mariadb mariadb >= 10.3.0 < 10.3.33 –
mariadb mariadb >= 10.4.0 < 10.4.23 –
mariadb mariadb >= 10.5.0 < 10.5.14 –
mariadb mariadb >= 10.6.0 < 10.6.6 –
mariadb mariadb >= 10.7.0 < 10.7.2 –
mariadb mariadb 10.8.0 –
Tutte le 435 vulnerabilità di Mariadb

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 436 CVE di tipo CWE-134, con andamento e prevenzione

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