vendor:
PostgreSQL
by:
Johannes Segitz
7.0
CVSS
HIGH
Privilege Escalation
269
CWE
Product Name: PostgreSQL
Affected Version From: PostgreSQL 9.4-0.5.3
Affected Version To: PostgreSQL 9.4-0.5.3
Patch Exists: YES
Related CWE: CVE-2017-14798
CPE: a:postgresql:postgresql:9.4-0.5.3
Other Scripts:
N/A
Platforms Tested: SUSE Linux Enterprise 11 SP4
2017
PostgreSQL 9.4-0.5.3 – Privilege Escalation
This exploit allows an attacker to gain root privileges on a system running PostgreSQL 9.4-0.5.3 or earlier. The exploit involves creating a symbolic link from the PostgreSQL data directory to the cron.hourly directory, which allows the attacker to write a malicious script to the cron.hourly directory. The script creates a new user with root privileges, which can then be used to gain access to the system.
Mitigation:
Upgrade to PostgreSQL 9.4-0.5.3.1 or later.