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 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.
What to do
Fixed builds are available from Alpine, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | postgresql-9.5 | Fixed | 9.5.11-0ubuntu0.16.04 | UBUNTU-CVE-2018-1053 |
| Ubuntu 14.04 | postgresql-9.1 | Fix pending | ||
| Ubuntu 14.04 | postgresql-9.3 | Fixed | 9.3.21-0ubuntu0.14.04 | UBUNTU-CVE-2018-1053 |
| Red Hat Enterprise Linux 8 | pg_repack | Not affected | ||
| Red Hat Enterprise Linux 8 | pgaudit | Not affected | ||
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-private-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-private-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Not affected | ||
| Red Hat Enterprise Linux 5 | postgresql | Not affected | ||
| Red Hat Enterprise Linux 5 | postgresql84 | Not affected | ||
| Alpine Linux 3.20 | postgresql14 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.19 | postgresql14 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.17 | postgresql14 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.17 | postgresql15 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.16 | postgresql14 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.15 | postgresql14 | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.14 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.13 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.12 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.11 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.10 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.9 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.8 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.7 | postgresql | Fixed | 10.2-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.6 | postgresql | Fixed | 9.6.7-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.5 | postgresql | Fixed | 9.6.7-r0 | ALPINE-CVE-2018-1053 |
| Alpine Linux 3.4 | postgresql | Fixed | 9.5.11-r0 | ALPINE-CVE-2018-1053 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The PostgreSQL Global Development Group postgresql: affected: 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, 10.x before 10.2
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:2511 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2566 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:3816 (vendor-advisory)
- https://usn.ubuntu.com/3564-1/ (vendor-advisory)
References
- https://www.postgresql.org/about/news/1829/
- https://access.redhat.com/errata/RHSA-2018:2511
- https://lists.debian.org/debian-lts-announce/2018/02/msg00006.html
- https://access.redhat.com/errata/RHSA-2018:2566
- https://access.redhat.com/errata/RHSA-2018:3816
- http://www.securityfocus.com/bid/102986
- https://usn.ubuntu.com/3564-1/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.