PT-2017-3821

CVE-2017-12172

·

Published

2017-11-09

·

Updated

2026-11-12

Description by

CVSS 2.0
7.2
High
MetricsAV:L/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions PostgreSQL versions 9.2.x through 9.2.23 PostgreSQL versions 9.3.x through 9.3.19 PostgreSQL versions 9.4.x through 9.4.14 PostgreSQL versions 9.5.x through 9.5.9 PostgreSQL versions 9.6.x through 9.6.5 PostgreSQL versions 10.x through 10.0
Description The issue is related to the possibility of running under a non-root operating system account. Exploitation may allow an attacker to execute arbitrary code. Database superusers can run arbitrary code under the system account. The problem arises from the startup script that allows database administrators to modify root-owned files. Specifically, several startup implementations use a log file name that the database superuser can replace with a symbolic link, and then use functions like open(), chmod(), and/or chown() to escalate privileges to root when the root starts the server.
Recommendations For PostgreSQL versions 9.2.x through 9.2.23, update to version 9.2.24 or later. For PostgreSQL versions 9.3.x through 9.3.19, update to version 9.3.20 or later. For PostgreSQL versions 9.4.x through 9.4.14, update to version 9.4.15 or later. For PostgreSQL versions 9.5.x through 9.5.9, update to version 9.5.10 or later. For PostgreSQL versions 9.6.x through 9.6.5, update to version 9.6.6 or later. For PostgreSQL versions 10.x through 10.0, update to version 10.1 or later. As a temporary workaround, consider restricting access to the startup script and log files to prevent privilege escalation.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
CESA-2017_3402
CLSA-2026-1794273507
CLSA-2026-1794325729
MGASA-2017-0428
RHSA-2017:3402
RHSA-2017_3402
RHSA-2017:3403
RHSA-2017:3404
RHSA-2017:3405
SUSE-SU-2018:0077-1
SUSE-SU-2018_0077-1
SUSE-SU-2018:0081-1
SUSE-SU-2018_0081-1
Found an issue in the description? Have something to add? Feel free to write us 👾