CVE Vulnerabilities

CVE-2018-1053

Insecure Temporary File

Published: Feb 09, 2018 | Modified: Nov 21, 2024
CVSS 3.x
7
HIGH
Source:
NVD
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
3.3 LOW
AV:L/AC:M/Au:N/C:P/I:P/A:N
RedHat/V2
RedHat/V3
6.7 MODERATE
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Ubuntu
LOW

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.

Weakness

Creating and using insecure temporary files can leave application and system data vulnerable to attack.

Affected Software

Name Vendor Start Version End Version
Postgresql Postgresql 9.3.0 (including) 9.3.21 (excluding)
Postgresql Postgresql 9.4.0 (including) 9.4.16 (excluding)
Postgresql Postgresql 9.5.0 (including) 9.5.11 (excluding)
Postgresql Postgresql 9.6.0 (including) 9.6.7 (excluding)
Postgresql Postgresql 10.0 (including) 10.0 (including)
Postgresql Postgresql 10.1 (including) 10.1 (including)
Postgresql-10 Ubuntu upstream *
Postgresql-9.1 Ubuntu precise/esm *
Postgresql-9.1 Ubuntu trusty *
Postgresql-9.3 Ubuntu trusty *
Postgresql-9.5 Ubuntu xenial *
Postgresql-9.6 Ubuntu artful *
CloudForms Management Engine 5.9 RedHat cfme-0:5.9.6.5-3.el7cf *
CloudForms Management Engine 5.9 RedHat cfme-amazon-smartstate-0:5.9.6.5-2.el7cf *
CloudForms Management Engine 5.9 RedHat cfme-appliance-0:5.9.6.5-1.el7cf *
CloudForms Management Engine 5.9 RedHat cfme-gemset-0:5.9.6.5-2.el7cf *
CloudForms Management Engine 5.9 RedHat dbus-api-service-0:1.0.1-3.1.el7cf *
CloudForms Management Engine 5.9 RedHat httpd-configmap-generator-0:0.2.2-1.2.el7cf *
CloudForms Management Engine 5.9 RedHat postgresql96-0:9.6.10-1PGDG.el7at *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat rh-postgresql95-postgresql-0:9.5.14-1.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6 RedHat rh-postgresql96-postgresql-0:9.6.10-1.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS RedHat rh-postgresql95-postgresql-0:9.5.14-1.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS RedHat rh-postgresql96-postgresql-0:9.6.10-1.el6 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-postgresql95-postgresql-0:9.5.14-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-postgresql96-postgresql-0:9.6.10-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS RedHat rh-postgresql95-postgresql-0:9.5.14-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS RedHat rh-postgresql96-postgresql-0:9.6.10-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS RedHat rh-postgresql95-postgresql-0:9.5.14-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS RedHat rh-postgresql96-postgresql-0:9.6.10-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS RedHat rh-postgresql95-postgresql-0:9.5.14-1.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS RedHat rh-postgresql96-postgresql-0:9.6.10-1.el7 *

References