CVE-2017-12172
CVE-2017-12172 Vulnerability Analysis & Exploit Intelligence
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.
Published Updated Sources: cvelistV5, redhat
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
Unscored
no source published a base score
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Weakness & attack patterns
- CWE-59
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1547.009Boot or Logon Autostart Execution: Shortcut Modification
- T1574.005Hijack Execution Flow: Executable Installer File Permissions Weakness
- T1574.010Hijack Execution Flow: Services File Permissions Weakness
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /or.
References
8 on the record
- access.redhat.com/errata/RHSA-2017:3402
vendor-advisory, x_refsource_REDHAT
- www.securityfocus.com/bid/101949
vdb-entry, x_refsource_BID
- access.redhat.com/errata/RHSA-2017:3403
vendor-advisory, x_refsource_REDHAT
- access.redhat.com/errata/RHSA-2017:3405
vendor-advisory, x_refsource_REDHAT
- www.postgresql.org/support/security/
x_refsource_MISC
- www.securitytracker.com/id/1039752
vdb-entry, x_refsource_SECTRACK
- www.postgresql.org/about/news/1801/
x_refsource_CONFIRM
- access.redhat.com/errata/RHSA-2017:3404
vendor-advisory, x_refsource_REDHAT
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-6460 PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary codeCVSS 8.8
- CVE-2018-1058 A flaw was found in the way Postgresql allowed a user to modify the behavior of a query for other usersCVSS 8.8
- CVE-2026-6471 PostgreSQL logical decoding can dlopen arbitrary fileCVSS 7.2
- CVE-2025-48384 Git allows arbitrary code execution through broken config quotingCVSS 8.0 · CISA KEV
- CVE-2026-81963 Windows Update Stack Elevation of Privilege VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2026-41091 Microsoft Defender Elevation of Privilege VulnerabilityCVSS 7.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.