PT-2018-3137 · Postgresql+2 · Postgresql+2

Tom Lane

·

Publicado

2018-02-07

·

Atualizado

2024-06-15

·

CVE-2018-1053

CVSS v3.1

7.0

Alta

VetorAV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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.

Correção

Incorrect Permission

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

BDU:2019-04232
CVE-2018-1053
DLA-1271-1
MGASA-2018-0137
OPENSUSE-SU-2018_0529-1
OPENSUSE-SU-2024:11184-1
RHSA-2018:2511
RHSA-2018:2566
RHSA-2018:3816
SUSE-SU-2018:0506-1
SUSE-SU-2018:0507-1
SUSE-SU-2018:0675-1
SUSE-SU-2018_0506-1
SUSE-SU-2018_0507-1
SUSE-SU-2018_0675-1
USN-3564-1

Produtos afetados

Postgresql
Suse
Ubuntu