1. Archivio CVE
  2. 2024
  3. CVE-2024-10978

CVE-2024-10978

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

Descrizione

Incorrect privilege assignment in PostgreSQL allows a less-privileged application user to view or change different rows from those intended. An attack requires the application to use SET ROLE, SET SESSION AUTHORIZATION, or an equivalent feature. The problem arises when an application query uses parameters from the attacker or conveys query results to the attacker. If that query reacts to current_setting('role') or the current user ID, it may modify or return data as though the session had not used SET ROLE or SET SESSION AUTHORIZATION. The attacker does not control which incorrect user ID applies. Query text from less-privileged sources is not a concern here, because SET ROLE and SET SESSION AUTHORIZATION are not sandboxes for unvetted queries. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 11.0 –
postgresql postgresql >= 12.0 < 12.21 –
postgresql postgresql >= 13.0 < 13.17 –
postgresql postgresql >= 14.0 < 14.14 –
postgresql postgresql >= 15.0 < 15.9 –
postgresql postgresql >= 16.0 < 16.5 –
postgresql postgresql 17.0 –
postgresql postgresql 17.0 beta1 –
postgresql postgresql 17.0 beta2 –
postgresql postgresql 17.0 beta3 –
postgresql postgresql 17.0 rc1 –
Tutte le 203 vulnerabilità di Postgresql

Tipo di vulnerabilità

CWE-266 Assegnazione errata dei privilegi

Il prodotto assegna per errore un privilegio a un soggetto, che finisce per avere poteri maggiori di quelli previsti.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Ottenere privilegi o assumere un’altra identità

Come si previene

Architettura e progettazione · Esercizio Gestisci con molta attenzione l’assegnazione e l’uso dei privilegi, e definisci in modo esplicito le zone di fiducia del software.
Architettura e progettazione · Esercizio · Hardening dell’ambiente Run your code using the lowest privileges that are required to accomplish the necessary tasks. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.

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

Tutte le 1.271 CVE di tipo CWE-266, con andamento e prevenzione

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