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…
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High7.0 | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.48% · top 58% of all CVEs (4 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.0.
Weakness
Affected products
The PostgreSQL Global Development Group · postgresql
- affected 9.3.x before 9.3.21
- affected 9.4.x before 9.4.16
- affected 9.5.x before 9.5.11
- affected 9.6.x before 9.6.7
- affected 10.x before 10.2
References (7)
- https://www.postgresql.org/about/news/1829/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2018:2511 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [debian-lts-announce] 20180207 [SECURITY] [DLA-1271-1] postgresql-9.1 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2018:2566 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:3816 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 102986 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- USN-3564-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-1053)Record last updated .