postgresql: pg_upgrade creates file of sensitive metadata under prevailing umask
Published Feb 9, 2018
7.0
HIGHCVSS 3.0
EPSS 0.48%
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.
Affected products
-
- Version 10.x before 10.2StatusaffectedConstraints-
- Version 9.3.x before 9.3.21StatusaffectedConstraints-
- Version 9.4.x before 9.4.16StatusaffectedConstraints-
- Version 9.5.x before 9.5.11StatusaffectedConstraints-
- Version 9.6.x before 9.6.7StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| The PostgreSQL Global Development Group | PostgreSQL | n/a |
|
Configuration 1
- ≥ 9.3.0 · < 9.3.21
- ≥ 9.4.0 · < 9.4.16
- ≥ 9.5.0 · < 9.5.11
- ≥ 9.6.0 · < 9.6.7
- 10.0
- 10.1
Configuration 2
- 7.0
Configuration 3
- 14.04
- 16.04
- 17.10
Configuration 4
- 4.6
No data.
CloudForms Management Engine 5.9
cfme-0:5.9.6.5-3.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
cfme-amazon-smartstate-0:5.9.6.5-2.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
cfme-appliance-0:5.9.6.5-1.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
cfme-gemset-0:5.9.6.5-2.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
dbus-api-service-0:1.0.1-3.1.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
httpd-configmap-generator-0:0.2.2-1.2.el7cf
Fixed · RHSA-2018:3816
CloudForms Management Engine 5.9
postgresql96-0:9.6.10-1PGDG.el7at
Fixed · RHSA-2018:3816
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql95-postgresql-0:9.5.14-1.el6
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-postgresql96-postgresql-0:9.6.10-1.el6
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el6
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el6
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-postgresql95-postgresql-0:9.5.14-1.el7
Fixed · RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-postgresql96-postgresql-0:9.6.10-1.el7
Fixed · RHSA-2018:2566
CloudForms Management Engine 5
postgresql94
Will not fix
CloudForms Management Engine 5
rh-postgresql95-postgresql
Not affected
Red Hat Enterprise Linux 5
postgresql
Not affected
Red Hat Enterprise Linux 5
postgresql84
Not affected
Red Hat Enterprise Linux 6
postgresql
Not affected
Red Hat Enterprise Linux 7
postgresql
Not affected
Red Hat Enterprise Linux 8
postgresql
Not affected
Red Hat JBoss Fuse Service Works 6
postgresql
Not affected
Red Hat JBoss Operations Network 3
postgresql
Not affected
Red Hat Mobile Application Platform 4
postgresql
Not affected
Red Hat Satellite 5
postgresql95-postgresql
Will not fix
Red Hat Single Sign-On 7
postgresql
Not affected
Red Hat Software Collections
rh-postgresql10-postgresql
Not affected
Red Hat Software Collections
rh-postgresql94-postgresql
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5.9 | cfme-0:5.9.6.5-3.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | cfme-amazon-smartstate-0:5.9.6.5-2.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | cfme-appliance-0:5.9.6.5-1.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | cfme-gemset-0:5.9.6.5-2.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | dbus-api-service-0:1.0.1-3.1.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | httpd-configmap-generator-0:0.2.2-1.2.el7cf | Fixed | RHSA-2018:3816 |
| CloudForms Management Engine 5.9 | postgresql96-0:9.6.10-1PGDG.el7at | Fixed | RHSA-2018:3816 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql95-postgresql-0:9.5.14-1.el6 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-postgresql96-postgresql-0:9.6.10-1.el6 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el6 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el6 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-postgresql95-postgresql-0:9.5.14-1.el7 | Fixed | RHSA-2018:2511 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-postgresql96-postgresql-0:9.6.10-1.el7 | Fixed | RHSA-2018:2566 |
| CloudForms Management Engine 5 | postgresql94 | Will not fix | n/a |
| CloudForms Management Engine 5 | rh-postgresql95-postgresql | Not affected | n/a |
| Red Hat Enterprise Linux 5 | postgresql | Not affected | n/a |
| Red Hat Enterprise Linux 5 | postgresql84 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | postgresql | Not affected | n/a |
| Red Hat Enterprise Linux 7 | postgresql | Not affected | n/a |
| Red Hat Enterprise Linux 8 | postgresql | Not affected | n/a |
| Red Hat JBoss Fuse Service Works 6 | postgresql | Not affected | n/a |
| Red Hat JBoss Operations Network 3 | postgresql | Not affected | n/a |
| Red Hat Mobile Application Platform 4 | postgresql | Not affected | n/a |
| Red Hat Satellite 5 | postgresql95-postgresql | Will not fix | n/a |
| Red Hat Single Sign-On 7 | postgresql | Not affected | n/a |
| Red Hat Software Collections | rh-postgresql10-postgresql | Not affected | n/a |
| Red Hat Software Collections | rh-postgresql94-postgresql | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of PostgreSQL 9.x as shipped with Red Hat Satellite 5.x and CloudForms 5.x. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
AV:L/AC:M/Au:N/C:P/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.48% (0.00482) | 39.27th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.51% (0.00510) | 39.18th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.10% (0.00100) | 25.34th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.06% (0.00062) | 28.60th | v3 (v2023.03.01) |
| Jun 13, 2024 | 0.06% (0.00062) | 26.61th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.06% (0.00062) | 24.59th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.03% (0.01034) | 41.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.03% (0.01034) | 39.91th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.03% (0.01034) | 37.91th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.03% (0.01034) | 20.32th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.66% (0.01659) | 34.20th | v1 |
| Jan 6, 2022 | 1.66% (0.01659) | 33.50th | v1 |
| Sep 1, 2021 | 1.66% (0.01659) | 73.96th | v1 |
| Apr 14, 2021 | 1.66% (0.01659) | 0.00th | v1 |
References (11)
- http://www.securityfocus.com/bid/102986 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:2511 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2566 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3816 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-1053 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1539619 Issue Tracking
- https://lists.debian.org/debian-lts-announce/2018/02/msg00006.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-1053
- https://usn.ubuntu.com/3564-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-1053
- https://www.postgresql.org/about/news/1829/ x_refsource_CONFIRMPatchRelease NotesThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/102986 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2018:2511 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/errata/RHSA-2018:2566 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/errata/RHSA-2018:3816 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2018-1053 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1539619 | Issue Tracking | |
| https://lists.debian.org/debian-lts-announce/2018/02/msg00006.html | mailing-listx_refsource_MLISTMailing ListThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-1053 | ||
| https://usn.ubuntu.com/3564-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-1053 | ||
| https://www.postgresql.org/about/news/1829/ | x_refsource_CONFIRMPatchRelease NotesThird Party Advisory |
Change history (0)
No recorded changes yet.