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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
PostgresqlPostgresql9.3.0 (including)9.3.21 (excluding)
PostgresqlPostgresql9.4.0 (including)9.4.16 (excluding)
PostgresqlPostgresql9.5.0 (including)9.5.11 (excluding)
PostgresqlPostgresql9.6.0 (including)9.6.7 (excluding)
PostgresqlPostgresql10.0 (including)10.0 (including)
PostgresqlPostgresql10.1 (including)10.1 (including)
CloudForms Management Engine 5.9RedHatcfme-0:5.9.6.5-3.el7cf*
CloudForms Management Engine 5.9RedHatcfme-amazon-smartstate-0:5.9.6.5-2.el7cf*
CloudForms Management Engine 5.9RedHatcfme-appliance-0:5.9.6.5-1.el7cf*
CloudForms Management Engine 5.9RedHatcfme-gemset-0:5.9.6.5-2.el7cf*
CloudForms Management Engine 5.9RedHatdbus-api-service-0:1.0.1-3.1.el7cf*
CloudForms Management Engine 5.9RedHathttpd-configmap-generator-0:0.2.2-1.2.el7cf*
CloudForms Management Engine 5.9RedHatpostgresql96-0:9.6.10-1PGDG.el7at*
Red Hat Software Collections for Red Hat Enterprise Linux 6RedHatrh-postgresql95-postgresql-0:9.5.14-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 6RedHatrh-postgresql96-postgresql-0:9.6.10-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSRedHatrh-postgresql95-postgresql-0:9.5.14-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSRedHatrh-postgresql96-postgresql-0:9.6.10-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-postgresql95-postgresql-0:9.5.14-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-postgresql96-postgresql-0:9.6.10-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSRedHatrh-postgresql95-postgresql-0:9.5.14-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSRedHatrh-postgresql96-postgresql-0:9.6.10-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSRedHatrh-postgresql95-postgresql-0:9.5.14-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSRedHatrh-postgresql96-postgresql-0:9.6.10-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSRedHatrh-postgresql95-postgresql-0:9.5.14-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSRedHatrh-postgresql96-postgresql-0:9.6.10-1.el7*
Postgresql-10Ubuntuupstream*
Postgresql-9.1Ubuntuprecise/esm*
Postgresql-9.1Ubuntutrusty*
Postgresql-9.3Ubuntuesm-infra-legacy/trusty*
Postgresql-9.3Ubuntutrusty*
Postgresql-9.3Ubuntutrusty/esm*
Postgresql-9.5Ubuntuesm-infra/xenial*
Postgresql-9.5Ubuntuxenial*
Postgresql-9.6Ubuntuartful*

References