Tom Lane

#1841de 53,633
125CVSS total
Vulnerabilidades · 18
Baixa
1
Média
7
Alta
10
PT-2024-8140
8.8
2024-11-14
Postgresql · Postgresql · CVE-2024-10978
Nome do software vulnerável e versões afetadas: Versões do PostgreSQL anteriores à 17.1 Versões do PostgreSQL anteriores à 16.5 Versões do PostgreSQL anteriores à 15.9 Versões do PostgreSQL anteriores à 14.14 Versões do PostgreSQL anteriores à 13.17 Versões do PostgreSQL anteriores à 12.21 Descrição: O problema decorre de uma atribuição incorreta de privilégios, permitindo que um usuário de aplicativo com menos privilégios visualize ou altere linhas diferentes daquelas pretendidas. Um ataque requer que o aplicativo utilize SET ROLE, SET SESSION AUTHORIZATION ou um recurso equivalente. O problema ocorre quando uma consulta do aplicativo utiliza parâmetros do invasor ou transmite resultados da consulta ao invasor, e reage a `current setting(‘role’)` ou ao ID do usuário atual. Isso pode fazer com que a consulta modifique ou retorne dados como se a sessão não tivesse usado SET ROLE ou SET SESSION AUTHORIZATION. O invasor não controla qual ID de usuário incorreta é aplicada. Recomendações: Para versões anteriores à 17.1, atualize para o PostgreSQL 17.1 ou posterior. Para versões anteriores à 16.5, atualize para o PostgreSQL 16.5 ou posterior. Para versões anteriores à 15.9, atualize para o PostgreSQL 15.9 ou posterior. Para versões anteriores à 14.14, atualize para o PostgreSQL 14.14 ou posterior. Para versões anteriores à 13.17, atualize para o PostgreSQL 13.17 ou posterior. Para versões anteriores à 12.21, atualize para o PostgreSQL 12.21 ou posterior. Como solução temporária, considere restringir o uso dos recursos SET ROLE e SET SESSION AUTHORIZATION até que um patch esteja disponível. Evite usar parâmetros de fontes não confiáveis no aplicativo
PT-2018-3137
7.0
2018-02-07
Postgresql · Postgresql · CVE-2018-1053
**Name of the Vulnerable Software and Affected Versions** PostgreSQL versions 9.3.x through 9.3.20 PostgreSQL versions 9.4.x through 9.4.15 PostgreSQL versions 9.5.x through 9.5.10 PostgreSQL versions 9.6.x through 9.6.6 PostgreSQL versions 10.x through 10.1 **Description** The issue is related to the implementation of the `pg upgrade` command in the PostgreSQL database management system. It involves errors when creating temporary files in the current working directory. Exploitation of this issue could allow an attacker to access arbitrary files. Specifically, `pg upgrade` creates a file containing the output of `pg dumpall -g` under the umask in effect when the user invoked `pg upgrade`, rather than the normally used 0077 for other temporary files. This could enable an authenticated attacker to read or modify the file, potentially accessing encrypted or unencrypted database passwords. The attack is more difficult if the directory mode prevents the attacker from searching the current working directory or if the prevailing umask blocks the attacker from opening the file. **Recommendations** For PostgreSQL versions 9.3.x through 9.3.20, update to version 9.3.21 or later. For PostgreSQL versions 9.4.x through 9.4.15, update to version 9.4.16 or later. For PostgreSQL versions 9.5.x through 9.5.10, update to version 9.5.11 or later. For PostgreSQL versions 9.6.x through 9.6.6, update to version 9.6.7 or later. For PostgreSQL versions 10.x through 10.1, update to version 10.2 or later.