Back to CVE catalog
CVE-2018-1053

pg_upgrade vulnerability allowing read or modification of file with passwords

The PostgreSQL Global Development Group postgresql

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityHigh
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.0

7.0High
Published:
Updated:
EPSS:
0.482%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Local

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:The PostgreSQL Global Development GrouppostgresqlAffected versions:
9.3.x before 9.3.21Show full version range for postgresql
9.4.x before 9.4.169.5.x before 9.5.119.6.x before 9.6.710.x before 10.2
Vendor:Red HatCloudForms Management Engine 5Affected versions:Source does not specify a version range
Vendor:Red HatCloudForms Management Engine 5.9Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Satellite 5Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software CollectionsAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server (v. 6)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)Affected versions:Source does not specify a version range

1–10 of 17 · Page 1 of 2

CVSS scores and metrics3
[email protected] · NVD (Primary)Primary7.0 / 10HighCVSS 3.0Details
Attack complexity
High
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)6.7 / 10MediumCVSS 3.0Details
Attack complexity
High
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)3.3 / 10LowCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Partial
Integrity
Partial
Availability
None
Attack vector
Local
Authentication
Not required

Source vector

AV:L/AC:M/Au:N/C:P/I:P/A:N

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories11

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences