# CVE-2017-12172

- Priority: **Routine**
- Reason: Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2017-11-22 · Modified: 2026-10-15
- Record: https://cvemate.com/vulnerability/CVE-2017-12172 · JSON: https://cvemate.com/vulnerability/CVE-2017-12172/json

## Description

```text
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.
```

## Signals

- CVSS: 7.2 high (v2.0, NVD) AV:L/AC:L/Au:N/C:C/I:C/A:C
- EPSS: 0.586%, percentile 49.475%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- postgresql postgresql: 9.2 \| 9.2.1 \| 9.2.2 \| 9.2.3 \| 9.2.4 \| 9.2.5 \| 9.2.6 \| 9.2.7 \| 9.2.8 \| 9.2.9 \| 9.2.10 \| 9.2.11 \| 9.2.12 \| 9.2.13 \| 9.2.14 \| 9.2.15 \| 9.2.16 \| 9.2.17 \| 9.2.18 \| 9.2.19 \| 9.2.20 \| 9.2.21 \| 9.2.22 \| 9.2.23 \| 9.3 \| 9.3.1 \| 9.3.2 \| 9.3.3 \| 9.3.4 \| 9.3.5 \| 9.3.6 \| 9.3.7 \| 9.3.8 \| 9.3.9 \| 9.3.10 \| 9.3.11 \| 9.3.12 \| 9.3.13 \| 9.3.14 \| 9.3.15 \| 9.3.16 \| 9.3.17 \| 9.3.18 \| 9.3.19 \| 9.4 \| 9.4.1 \| 9.4.2 \| 9.4.3 \| 9.4.4 \| 9.4.5 \| 9.4.6 \| 9.4.7 \| 9.4.8 \| 9.4.9 \| 9.4.10 \| 9.4.11 \| 9.4.12 \| 9.4.13 \| 9.4.14 \| 9.5 \| 9.5.1 \| 9.5.2 \| 9.5.3 \| 9.5.4 \| 9.5.5 \| 9.5.6 \| 9.5.7 \| 9.5.8 \| 9.5.9 \| 9.6 \| 9.6.1 \| 9.6.2 \| 9.6.3 \| 9.6.4 \| 9.6.5 \| 10
- red hat, inc. 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, 9.2.x before 9.2.24

## References

- <https://access.redhat.com/errata/RHSA-2017:3402>
- <http://www.securityfocus.com/bid/101949>
- <https://access.redhat.com/errata/RHSA-2017:3403>
- <https://access.redhat.com/errata/RHSA-2017:3405>
- <https://www.postgresql.org/support/security/>
- <http://www.securitytracker.com/id/1039752>
- <https://www.postgresql.org/about/news/1801/>
- <https://access.redhat.com/errata/RHSA-2017:3404>

---

Data as of 2026-12-05T03:38:30.405Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
