Privilege escalation in PostgreSQL

Published: 2019-11-14
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2019-3466
Exploitation vector Local
Public exploit N/A
Vulnerable software
Server applications / Database software

Vendor PostgreSQL Global Development Group

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Permissions, Privileges, and Access Controls

EUVDB-ID: #VU22785

Risk: Low


CVE-ID: CVE-2019-3466

CWE-ID: CWE-264 - Permissions, Privileges, and Access Controls

Exploit availability: No


The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to pg_ctlcluster does not drop privileges before creating sockets and temporary directories outside "/var/run/postgresql". A local user can create arbitrary directories on the system during application startup or reload and elevate privileges on the system.


Install updates from vendor's website.

Vulnerable software versions

PostgreSQL: 12.0, 11.0 - 11.5, 10.0 - 10.10, 9.6.0 - 9.6.15, 9.5.0 - 9.5.19, 9.4.0 - 9.4.24

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

How the attacker can exploit this vulnerability?

Is there known malware, which exploits this vulnerability?