6.7
MEDIUM
CVE-2017-12172
PostgreSQL Root Privilege Escalation
Description

PostgreSQL 10.x before 10.1, 9.6.x before 9.6.6, 9.5.x before 9.5.10, 9.4.x before 9.4.15, 9.3.x before 9.3.20, and 9.2.x before 9.2.24 runs under a non-root operating system account, and database superusers have effective ability to run arbitrary code under that system account. PostgreSQL provides a script for starting the database server during system boot. Packages of PostgreSQL for many operating systems provide their own, packager-authored startup implementations. Several implementations use a log file name that the database superuser can replace with a symbolic link. As root, they open(), chmod() and/or chown() this log file name. This often suffices for the database superuser to escalate to root privileges when root starts the server.

INFO

Published Date :

Nov. 22, 2017, 7:29 p.m.

Last Modified :

Oct. 9, 2019, 11:22 p.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

0.8
Affected Products

The following products are affected by CVE-2017-12172 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Postgresql postgresql
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2017-12172.

URL Resource
http://www.securityfocus.com/bid/101949 Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1039752 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2017:3402 Issue Tracking Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3403 Issue Tracking Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3404 Issue Tracking Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3405 Issue Tracking Third Party Advisory
https://www.postgresql.org/about/news/1801/ Issue Tracking Vendor Advisory
https://www.postgresql.org/support/security/ Issue Tracking Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2017-12172 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2017-12172 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Oct. 09, 2019

    Action Type Old Value New Value
    Added CWE Red Hat, Inc. CWE-59
  • Initial Analysis by [email protected]

    Dec. 11, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:L/AC:L/Au:N/C:C/I:C/A:C)
    Added CVSS V3 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://access.redhat.com/errata/RHSA-2017:3404 No Types Assigned https://access.redhat.com/errata/RHSA-2017:3404 Issue Tracking, Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2017:3405 No Types Assigned https://access.redhat.com/errata/RHSA-2017:3405 Issue Tracking, Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/101949 No Types Assigned http://www.securityfocus.com/bid/101949 Third Party Advisory, VDB Entry
    Changed Reference Type https://access.redhat.com/errata/RHSA-2017:3402 No Types Assigned https://access.redhat.com/errata/RHSA-2017:3402 Issue Tracking, Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2017:3403 No Types Assigned https://access.redhat.com/errata/RHSA-2017:3403 Issue Tracking, Third Party Advisory
    Changed Reference Type https://www.postgresql.org/support/security/ No Types Assigned https://www.postgresql.org/support/security/ Issue Tracking, Vendor Advisory
    Changed Reference Type http://www.securitytracker.com/id/1039752 No Types Assigned http://www.securitytracker.com/id/1039752 Third Party Advisory, VDB Entry
    Changed Reference Type https://www.postgresql.org/about/news/1801/ No Types Assigned https://www.postgresql.org/about/news/1801/ Issue Tracking, Vendor Advisory
    Added CWE CWE-59
    Added CPE Configuration OR *cpe:2.3:a:postgresql:postgresql:9.2:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.1:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.2:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.3:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.4:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.5:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.6:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.7:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.8:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.9:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.10:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.11:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.12:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.13:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.14:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.15:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.16:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.17:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.18:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.19:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.20:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.21:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.22:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.2.23:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.1:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.2:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.3:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.4:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.5:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.6:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.7:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.8:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.9:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.10:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.11:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.12:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.13:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.14:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.15:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.16:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.17:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.18:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.3.19:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.1:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.2:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.3:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.4:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.5:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.6:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.7:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.8:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.9:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.10:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.11:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.12:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.13:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.4.14:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.1:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.2:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.3:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.4:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.5:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.6:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.7:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.8:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.5.9:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.6:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.6.1:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.6.2:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.6.3:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.6.4:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:9.6.5:*:*:*:*:*:*:* *cpe:2.3:a:postgresql:postgresql:10:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Dec. 09, 2017

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2017:3405 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2017:3404 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2017:3403 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2017:3402 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 25, 2017

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/101949 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 24, 2017

    Action Type Old Value New Value
    Added Reference http://www.securitytracker.com/id/1039752 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2017-12172 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2017-12172 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.06 }} 0.00%

score

0.24592

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability