CVE-2018-1053: canonical ubuntu_linux Insecure Temporary File
Vulnerability summary
CVE-2018-1053 is a high (CVSS 7.0) Insecure Temporary File vulnerability in canonical ubuntu_linux. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 40.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 1Timeline
- 09-02-2018PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated7.0HighCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.0HighCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
0.00 pp
From 0.48% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-377Insecure Temporary FileCreating and using insecure temporary files can leave application and system data vulnerable to attack.
- CWE-732Incorrect Permission Assignment for Critical ResourceThe product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
Affected systems
Suse26 products
- postgresql94-libs&distro=SUSE Linux Enterprise Server 11 SP4< 9.4.16-0.23.13.2
- postgresql94-libs&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4< 9.4.16-0.23.13.2
- postgresql94-libs&distro=SUSE Linux Enterprise Software Development Kit 11 SP4< 9.4.16-0.23.13.2
- postgresql94-libs&distro=SUSE Linux Enterprise Software Development Kit 12 SP2< 9.4.16-21.16.1
- postgresql94&distro=SUSE Linux Enterprise Desktop 12 SP2< 9.4.16-21.16.1
Alpine3 products
- postgresql≥ 9.3.0, < 10.2-r0 | ≥ 9.3.0, < 9.5.11-r0 | ≥ 9.3.0, < 9.6.7-r0
- postgresql14< 10.2-r0
- postgresql15< 10.2-r0
Mageia3 products
- postgresql9.4< 9.4.16-1.mga5
- postgresql9.4< 9.4.16-1.mga6
- postgresql9.6< 9.6.7-1.mga6
Debian2 products
- postgresql-9.1< 9.1.24lts2-0+deb7u2
- debian_linuxEOL7.0
Ubuntu2 products
- postgresql-9.3< 9.3.21-0ubuntu0.14.04
- postgresql-9.5< 9.5.11-0ubuntu0.16.04
Canonical1 product
- ubuntu_linuxEOL14.04 | 16.04 | 17.10
Postgresql1 product
- postgresqlEOL≥ 9.3.0, < 9.3.21 | ≥ 9.4.0, < 9.4.16 | ≥ 9.5.0, < 9.5.11 | ≥ 9.6.0, < 9.6.7 | 10.0 | 1.01
Redhat1 product
- cloudforms4.6
The postgresql global development group1 product
- 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
9 vendors · 40 products
References
20 links- lists.debian.org/debian-lts-announce/2018/02/msg00006.htmlMailing ListX Refsource MLISTThird Party Advisory