Skip to content
Fencer Intel
high 7.0

CVE-2018-1053 json

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 fi…

published 8y ago modified 4mo ago also EUVD-2018-11706

cvss
7.0
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 41%
public exploits
0
none known

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.

Patch / fix

  • postgresql postgresql 9.3.21, 9.4.16, 9.5.11, 9.6.7
  • postgresql-9.3 Ubuntu 14.04 LTS 9.3.21-0ubuntu0.14.04
  • postgresql-9.5 Ubuntu 16.04 LTS 9.5.11-0ubuntu0.16.04

ubuntu advisories UBUNTU-CVE-2018-1053

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • cfme cloudforms managementengine 5.9 5.9.6.5-3.el7cf
  • cfme-gemset cloudforms managementengine 5.9 5.9.6.5-2.el7cf
  • postgresql96 cloudforms managementengine 5.9 9.6.10-1PGDG.el7at
  • cfme-appliance cloudforms managementengine 5.9 5.9.6.5-1.el7cf
  • dbus-api-service cloudforms managementengine 5.9 1.0.1-3.1.el7cf
  • postgresql96-libs cloudforms managementengine 5.9 9.6.10-1PGDG.el7at
  • postgresql96-test cloudforms managementengine 5.9 9.6.10-1PGDG.el7at
  • postgresql96-pltcl cloudforms managementengine 5.9 9.6.10-1PGDG.el7at

red hat advisories RHSA-2018:3816RHSA-2018:2566RHSA-2018:2511

  • postgresql94 SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2, SLES 12 SP2 +1 more 9.4.16-21.16.1
  • postgresql94-libs SLE Software Development Kit 12 SP2 9.4.16-21.16.1
  • postgresql94 SLES for SAP 11 SP4, SLES 11 SP4 9.4.16-0.23.13.2
  • postgresql94-libs SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 9.4.16-0.23.13.2
  • postgresql96 SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +4 more 9.6.7-3.13.1
  • postgresql96-libs SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +6 more 9.6.7-3.13.1

suse advisories SUSE-SU-2018:0675-1SUSE-SU-2018:0506-1SUSE-SU-2018:0507-1

  • postgresql10 openSUSE Tumbleweed 10.18-1.3

opensuse advisories openSUSE-SU-2024:11184-1

  • postgresql Alpine 3.14, Alpine 3.13, Alpine 3.12 +5 more 10.2-r0
  • postgresql Alpine 3.4 9.5.11-r0
  • postgresql Alpine 3.6, Alpine 3.5 9.6.7-r0
  • postgresql14 Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 10.2-r0
  • postgresql15 Alpine 3.20, Alpine 3.19, Alpine 3.18 +1 more 10.2-r0

alpine advisories ALPINE-CVE-2018-1053

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2018-1053 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-1053 updated cvss 6.7

postgresql: pg_upgrade creates file of sensitive metadata under prevailing umask

  • Red Hat CloudForms Management Engine 5 postgresql94, postgresql94-libs, postgresql94-test, postgresql94-pltcl, postgresql94-plperl, postgresql94-server, +2 more Red Hat Satellite 5 postgresql95-postgresql Red Hat Software Collections rh-postgresql94-postgresql, rh-postgresql94-postgresql-libs, rh-postgresql94-postgresql-test, rh-postgresql94-postgresql-pltcl, rh-postgresql94-postgresql-plperl, rh-postgresql94-postgresql-server, +3 more
    affected: no fix planned “Will not fix”
  • Red Hat CloudForms Management Engine 5.9 cfme 5.9.6.5-3.el7cf, cfme-gemset 5.9.6.5-2.el7cf, cfme-appliance 5.9.6.5-1.el7cf, postgresql96 9.6.10-1PGDG.el7at, dbus-api-service 1.0.1-3.1.el7cf, cfme-appliance-tools 5.9.6.5-1.el7cf, +10 more
    fixed: vendor fix RHSA-2018:3816
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-postgresql95-postgresql 9.5.14-1.el6, rh-postgresql96-postgresql 9.6.10-1.el6, rh-postgresql95-postgresql-libs 9.5.14-1.el6, rh-postgresql95-postgresql-test 9.5.14-1.el6, rh-postgresql96-postgresql-libs 9.6.10-1.el6, rh-postgresql96-postgresql-test 9.6.10-1.el6, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-postgresql95-postgresql 9.5.14-1.el6, rh-postgresql96-postgresql 9.6.10-1.el6, rh-postgresql95-postgresql-libs 9.5.14-1.el6, rh-postgresql95-postgresql-test 9.5.14-1.el6, rh-postgresql96-postgresql-libs 9.6.10-1.el6, rh-postgresql96-postgresql-test 9.6.10-1.el6, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more
    +2 more products
    Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-postgresql95-postgresql 9.5.14-1.el6, rh-postgresql96-postgresql 9.6.10-1.el6, rh-postgresql95-postgresql-libs 9.5.14-1.el6, rh-postgresql95-postgresql-test 9.5.14-1.el6, rh-postgresql96-postgresql-libs 9.6.10-1.el6, rh-postgresql96-postgresql-test 9.6.10-1.el6, +13 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-postgresql95-postgresql 9.5.14-1.el7, rh-postgresql96-postgresql 9.6.10-1.el7, rh-postgresql95-postgresql-libs 9.5.14-1.el7, rh-postgresql95-postgresql-test 9.5.14-1.el7, rh-postgresql96-postgresql-libs 9.6.10-1.el7, rh-postgresql96-postgresql-test 9.6.10-1.el7, +13 more
    fixed: vendor fix RHSA-2018:2511
  • Red Hat CloudForms Management Engine 5 rh-postgresql95-postgresql Red Hat Enterprise Linux 5 postgresql, postgresql84 Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, +7 more Red Hat JBoss Fuse Service Works 6 postgresql
    +4 more products
    Red Hat JBoss Operations Network 3 postgresql Red Hat Mobile Application Platform 4 postgresql Red Hat Single Sign-On 7 postgresql Red Hat Software Collections rh-postgresql10-postgresql, rh-postgresql10-postgresql-libs, rh-postgresql10-postgresql-test, rh-postgresql10-postgresql-pltcl, rh-postgresql10-postgresql-plperl, rh-postgresql10-postgresql-server, +5 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 7.0 CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 3.3 AV:L/AC:M/Au:N/C:P/I:P/A:N

Affected products

  • The PostgreSQL Global Development Group postgresql

Classification

Weakness
  • CWE-377 DEPRECATED: Insecure Temporary File
  • CWE-732 Incorrect Permission Assignment for Critical Resource
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.