CVE-2018-1053
publishedpostgresql: pg_upgrade creates file of sensitive metadata under prevailing umask
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| The PostgreSQL Global Development Group | — | postgresql9.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 · 10.x before 10.2 | Affected | Not stated | redhat |
| Alpine Linux | v3.10 | postgresql | Fixed | 10.2-r0 | Package fix record |
| Debian | wheezy | postgresql-9.1 | Advisory build | 9.1.24lts2-0+deb7u2 | DLA-1271-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresqlsrc | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Alpine Linux | v3.11 | postgresql | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.12 | postgresql | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.13 | postgresql | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.14 | postgresql | Fixed | 10.2-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.4 | postgresql | Fixed | 9.5.11-r0 | Package fix record |
| Alpine Linux | v3.5 | postgresql | Fixed | 9.6.7-r0 | Package fix record |
| Alpine Linux | v3.6 | postgresql | Fixed | 9.6.7-r0 | Package fix record |
| Alpine Linux | v3.7 | postgresql | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.8 | postgresql | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.9 | postgresql | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.15 | postgresql14 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql14 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql14 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql15 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql14 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql15 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql14 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql15 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql14 | Fixed | 10.2-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 10.2-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresqlx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-contribx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-debuginfox86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-develx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-docsx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-libsx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-plperlx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-plpythonx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-pltclx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-serverx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-staticx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-testx86_64 | Advisory build | 9.5.14-1.el6 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresqlsrc | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresqlx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-contribx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-contrib-syspathsx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-debuginfox86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-develx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-docsx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-libsx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-plperlx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-plpythonx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-pltclx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-serverx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-server-syspathsx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-staticx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-syspathsx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-testx86_64 | Advisory build | 9.6.10-1.el6 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresqlsrc | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresqlx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-contribx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-debuginfox86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-develx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-docsx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-libsx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-plperlx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-plpythonx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-pltclx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-serverx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-staticx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql95-postgresql-testx86_64 | Advisory build | 9.5.14-1.el7 | RHSA-2018:2511 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresqlaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresqlppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresqls390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresqlsrc | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresqlx86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contribaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contribppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contribs390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contribx86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contrib-syspathsaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contrib-syspathsppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contrib-syspathss390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-contrib-syspathsx86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-debuginfoaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-debuginfoppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-debuginfos390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-debuginfox86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-develaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-develppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-devels390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-develx86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-docsaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-docsppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-docss390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-docsx86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-libsaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-libsppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-libss390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-libsx86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-plperlaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-plperlppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-plperls390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-plperlx86_64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-plpythonaarch64 | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-plpythonppc64le | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql96-postgresql-plpythons390x | Advisory build | 9.6.10-1.el7 | RHSA-2018:2566 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| The PostgreSQL Global Development Group | postgresql | 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 (affected) | redhat · cna |
Weaknesses
1- CWE-377
References
7- 102986 http://www.securityfocus.com/bid/102986
- RHSA-2018:2511 https://access.redhat.com/errata/RHSA-2018:2511
- RHSA-2018:2566 https://access.redhat.com/errata/RHSA-2018:2566
- RHSA-2018:3816 https://access.redhat.com/errata/RHSA-2018:3816
- [debian-lts-announce] 20180207 [SECURITY] [DLA-1271-1] postgresql-9.1 security update https://lists.debian.org/debian-lts-announce/2018/02/msg00006.html
- USN-3564-1 https://usn.ubuntu.com/3564-1/
- https://www.postgresql.org/about/news/1829/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b41c65328beb0cbdf22a024e60cf94bf76c82696d403933be0d54d8f84137b91
- Ingested
- 23 Sep 2026, 07:44:12 UTC
- Source record
- Official CVE record