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, p…
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running The PostgreSQL Global Development Group 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; 10.x before 10.2
Vulnerability facts
- Affected
- The PostgreSQL Global Development Group 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; 10.x before 10.2
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.0 (v3.0, NVD)CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.48% chance of exploitation in 30 days (percentile 34, 2026-11-26)
- CWE
- CWE-377
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| The PostgreSQL Global Development Group 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; 10.x before 10.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-1053. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-1053.md Affected: The PostgreSQL Global Development Group 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; 10.x before 10.2 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for The PostgreSQL Global Development Group postgresql: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2018-1053 being exploited?
There is no confirmed exploitation: CVE-2018-1053 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-1053?
High: CVSS 7.0 (v3.0, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2018-1053?
The PostgreSQL Global Development Group 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; 10.x before 10.2.
Is there a fix for CVE-2018-1053?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2018-1053?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.