Incorrect permission assignment in postgresql
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 9 fixed, 3 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PostgreSQL | postgresql | 9.3 to before 9.3.21; 9.4 to before 9.4.16; 9.5 to before 9.5.11; 9.6 to before 9.6.7; 10 to before 10.2 | 9.3.21, 9.4.16, 9.5.11, 9.6.7, 10.2 | Patch available | CNA |
- postgresql VendorPostgreSQL Affected 9.3 to before 9.3.21; 9.4 to before 9.4.16; 9.5 to before 9.5.11; 9.6 to before 9.6.7; 10 to before 10.2 Fixed in 9.3.21, 9.4.16, 9.5.11, 9.6.7, 10.2 Patch available CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 9.3.0 to before 9.3.21; 9.4.0 to before 9.4.16; 9.5.0 to before 9.5.11; 9.6.0 to before 9.6.7 | Vulnerable | PostgreSQL |
| cpe:2.3:a:postgresql:postgresql:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | PostgreSQL |
| cpe:2.3:a:postgresql:postgresql:10.1:*:*:*:*:*:*:* | 10.1 | Vulnerable | PostgreSQL |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* | 17.10 | Vulnerable | Canonical |
| cpe:2.3:a:redhat:cloudforms:4.6:*:*:*:*:*:*:* | 4.6 | Vulnerable | Red Hat |
- cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions 9.3.0 to before 9.3.21; 9.4.0 to before 9.4.16; 9.5.0 to before 9.5.11; 9.6.0 to before 9.6.7 Vulnerable ·PostgreSQL
- cpe:2.3:a:postgresql:postgresql:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·PostgreSQL
- cpe:2.3:a:postgresql:postgresql:10.1:*:*:*:*:*:*:* Versions 10.1 Vulnerable ·PostgreSQL
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
- cpe:2.3:a:redhat:cloudforms:4.6:*:*:*:*:*:*:* Versions 4.6 Vulnerable ·Red Hat
Remediation
- Fix · CNA postgresql (The PostgreSQL Global Development Group) Fixed in 9.3.21, 9.4.16, 9.5.11, 9.6.7, 10.2
Red Hat 3 advisories
- RHSA-2018:3816 Released 2018-12-13 · Red Hat rating ImportantCloudForms 4.6.6 security, bug fix and enhancement update
- CloudForms Management Engine 5.9 cfme-5.9.6.5-3.el7cf, cfme-amazon-smartstate-5.9.6.5-2.el7cf, cfme-appliance-5.9.6.5-1.el7cf +15
- RHSA-2018:2566 Released 2018-08-27 · Red Hat rating Importantrh-postgresql96-postgresql security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql96-postgresql-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el6 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-postgresql96-postgresql-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el6 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql96-postgresql-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-9.6.10-1.el6, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el6 +11
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql96-postgresql-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-9.6.10-1.el7, rh-postgresql96-postgresql-contrib-syspaths-9.6.10-1.el7 +11
- RHSA-2018:2511 Released 2018-08-20 · Red Hat rating Importantrh-postgresql95-postgresql security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql95-postgresql-9.5.14-1.el6, rh-postgresql95-postgresql-contrib-9.5.14-1.el6, rh-postgresql95-postgresql-devel-9.5.14-1.el6 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-postgresql95-postgresql-9.5.14-1.el6, rh-postgresql95-postgresql-contrib-9.5.14-1.el6, rh-postgresql95-postgresql-devel-9.5.14-1.el6 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql95-postgresql-9.5.14-1.el6, rh-postgresql95-postgresql-contrib-9.5.14-1.el6, rh-postgresql95-postgresql-devel-9.5.14-1.el6 +8
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql95-postgresql-9.5.14-1.el7, rh-postgresql95-postgresql-contrib-9.5.14-1.el7, rh-postgresql95-postgresql-devel-9.5.14-1.el7 +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 5 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| CloudForms Management Engine 5.9 | Fixed | RHSA-2018:3816 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:2511, RHSA-2018:2566 |
Not affected: 10 products
- CloudForms Management Engine 5
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat JBoss Fuse Service Works 6
- Red Hat JBoss Operations Network 3
- Red Hat Mobile Application Platform 4
- Red Hat Single Sign-On 7
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2018-1053
- 2026-10-03 Alias added: GHSA-h73g-3m4r-j2cr
References
More Postgresql vulnerabilities
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2020-15711 SQL injection in postgresql CVSS 3.1HIGH 8.8
- TI-2013-01675 Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9… CVSS 2.0MEDIUM 6.5
- TI-2007-03176 The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE… CVSS 2.0HIGH 9.0
- TI-2022-01423 SQL injection in postgresql CVSS 3.1HIGH 8.8
Sources
- CVE-2018-1053 · CVE Program
- CVE-2018-1053 · NVD
- FIRST EPSS
- GHSA-h73g-3m4r-j2cr · GitHub Advisory Database · CC BY 4.0
- CVE-2018-1053 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences