Vulnerability in PostgreSQL
CVE-2018-1053
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.005, 42.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PostgreSQL — versions 10.0, 10.1
- The PostgreSQL Global Development Group — versions 9.4.x before 9.4.16, 9.5.x before 9.5.11, 10.x before 10.2
- Canonical Ubuntu Linux — versions 14.04, 16.04, 17.10
- Debian Linux — versions 7.0
- Red Hat Cloudforms — versions 4.6
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (lekctut/sdb-hw-13-01, pedr0alencar/vlab-metasploitable2). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.postgresql.org/about/news/1829/ (Patch, Third Party Advisory, Release Notes)
- RHSA-2018:2511 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20180207 [SECURITY] [DLA-1271-1] postgresql-9.1 security update (mailing-list, Mailing List, Third Party Advisory)
- RHSA-2018:2566 (vendor-advisory, Third Party Advisory)
- RHSA-2018:3816 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/102986 (Third Party Advisory, VDB Entry, vdb-entry)
- USN-3564-1 (vendor-advisory, Third Party Advisory)