cve.bz

CVE-2018-1053 Insecure Temporary File

7.0 highEPSS 0.5%Fix available

High (7.0). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.0 high
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-732 Incorrect Permission Assignment for Critical Resource
CWE-377 Insecure Temporary File deprecated by MITRE
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1053 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1053?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1053?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1053 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 9.3.0 before 9.3.21
postgresql:postgresqlfrom 9.4.0 before 9.4.16
postgresql:postgresqlfrom 9.5.0 before 9.5.11
postgresql:postgresqlfrom 9.6.0 before 9.6.7
postgresql:postgresql10.0
postgresql:postgresql10.1
debian:debian_linux7.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
redhat:cloudforms4.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7postgresql-9.19.1.24lts2-0+deb7u2DLA-1271-1
Ubuntu14.04:LTSpostgresql-9.39.3.21-0ubuntu0.14.04UBUNTU-CVE-2018-1053 USN-3564-1
Ubuntu16.04:LTSpostgresql-9.59.5.11-0ubuntu0.16.04UBUNTU-CVE-2018-1053 USN-3564-1
Red Hatcloudforms_managementengine:5.9::el7cfme, cfme-debuginfo0:5.9.6.5-3.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7cfme-appliance, cfme-appliance-tools, cfme-appliance-common and 1 more0:5.9.6.5-1.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7cfme-gemset, cfme-gemset-debuginfo, cfme-amazon-smartstate0:5.9.6.5-2.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7dbus-api-service0:1.0.1-3.1.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7httpd-configmap-generator0:0.2.2-1.2.el7cfRHSA-2018:3816
Red Hatcloudforms_managementengine:5.9::el7postgresql96, postgresql96-docs, postgresql96-libs and 8 more0:9.6.10-1PGDG.el7atRHSA-2018:3816
Red Hatrhel_software_collections:3::el6rh-postgresql95-postgresql, rh-postgresql95-postgresql-docs, rh-postgresql95-postgresql-libs and 9 more0:9.5.14-1.el6RHSA-2018:2511
Red Hatrhel_software_collections:3::el6rh-postgresql96-postgresql, rh-postgresql96-postgresql-docs, rh-postgresql96-postgresql-libs and 12 more0:9.6.10-1.el6RHSA-2018:2566
Red Hatrhel_software_collections:3::el7rh-postgresql95-postgresql, rh-postgresql95-postgresql-docs, rh-postgresql95-postgresql-libs and 9 more0:9.5.14-1.el7RHSA-2018:2511
Red Hatrhel_software_collections:3::el7rh-postgresql96-postgresql, rh-postgresql96-postgresql-docs, rh-postgresql96-postgresql-libs and 12 more0:9.6.10-1.el7RHSA-2018:2566
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 4 morepostgresql96, postgresql96-libs9.6.7-3.13.1SUSE-SU-2018:0507-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 1 morepostgresql949.4.16-21.16.1SUSE-SU-2018:0675-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4postgresql94, postgresql94-libs9.4.16-0.23.13.2SUSE-SU-2018:0506-1
SUSELinux Enterprise Software Development Kit 11 SP4postgresql94-libs9.4.16-0.23.13.2SUSE-SU-2018:0506-1
SUSELinux Enterprise Software Development Kit 12 SP2postgresql94-libs9.4.16-21.16.1SUSE-SU-2018:0675-1
SUSELinux Enterprise Software Development Kit 12 SP2, Linux Enterprise Software Development Kit 12 SP3postgresql96-libs9.6.7-3.13.1SUSE-SU-2018:0507-1
openSUSETumbleweedpostgresql1010.18-1.3openSUSE-SU-2024:11184-1
Alpinev3.4postgresql9.5.11-r0ALPINE-CVE-2018-1053
Alpinev3.5, v3.6postgresql9.6.7-r0ALPINE-CVE-2018-1053
Alpinev3.7, v3.8, v3.9 and 5 morepostgresql10.2-r0ALPINE-CVE-2018-1053
Alpinev3.15, v3.16postgresql1410.2-r0ALPINE-CVE-2018-1053
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql14, postgresql1510.2-r0ALPINE-CVE-2018-1053

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of PostgreSQL 9.x as shipped with Red Hat Satellite 5.x and CloudForms 5.x. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

ProductPackageStateAdvisory
CloudForms Management Engine 5.9cfme-0:5.9.6.5-3.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9cfme-amazon-smartstate-0:5.9.6.5-2.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9cfme-appliance-0:5.9.6.5-1.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9cfme-gemset-0:5.9.6.5-2.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9dbus-api-service-0:1.0.1-3.1.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9httpd-configmap-generator-0:0.2.2-1.2.el7cfFixed 2018-12-13RHSA-2018:3816
CloudForms Management Engine 5.9postgresql96-0:9.6.10-1PGDG.el7atFixed 2018-12-13RHSA-2018:3816
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql95-postgresql-0:9.5.14-1.el6Fixed 2018-08-20RHSA-2018:2511
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-postgresql96-postgresql-0:9.6.10-1.el6Fixed 2018-08-27RHSA-2018:2566
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-postgresql95-postgresql-0:9.5.14-1.el6Fixed 2018-08-20RHSA-2018:2511
CloudForms Management Engine 5postgresql94Will not fix
CloudForms Management Engine 5rh-postgresql95-postgresqlNot affected
Red Hat Enterprise Linux 5postgresqlNot affected
Red Hat Enterprise Linux 5postgresql84Not affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8postgresqlNot affected
Red Hat JBoss Fuse Service Works 6postgresqlNot affected
Red Hat JBoss Operations Network 3postgresqlNot affected
Red Hat Mobile Application Platform 4postgresqlNot affected
13 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1053.

Attack patterns (CAPEC)

  • CAPEC-149 Explore for Predictable Temporary File Names Severity: Medium
  • CAPEC-155 Screen Temporary Files for Sensitive Information Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON