Rapid7 Vulnerability & Exploit Database

Ubuntu: USN-3564-1 (CVE-2018-1053): PostgreSQL vulnerability

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

Ubuntu: USN-3564-1 (CVE-2018-1053): PostgreSQL vulnerability

Severity
3
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:N)
Published
02/05/2018
Created
07/25/2018
Added
02/10/2018
Modified
03/02/2020

Description

In postgresql 9.3.x before 9.3.21, 9.4.x before 9.4.16, 9.5.x before 9.5.11, 9.6.x before 9.6.7 and 10.x before 10.2, pg_upgrade creates file in current working directory containing the output of `pg_dumpall -g` under umask which was in effect when the user invoked pg_upgrade, and not under 0077 which is normally used for other temporary files. This can allow an authenticated attacker to read or modify the one file, which may contain encrypted or unencrypted database passwords. The attack is infeasible if a directory mode blocks the attacker searching the current working directory or if the prevailing umask blocks the attacker opening the file.

Solution(s)

  • ubuntu-upgrade-postgresql-9-3
  • ubuntu-upgrade-postgresql-9-5
  • ubuntu-upgrade-postgresql-9-6

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;