CVE-2017-12172
publishedpostgresql: Start scripts permit database administrator to modify root-owned files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat, Inc. | — | postgresql10.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 | Affected | Not stated | redhat |
| Oracle Linux | 7 | postgresqlaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlaarch64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Oracle Linux | 7 | postgresqlx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqli686 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlppc | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlppc64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlppc64le | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-7 | postgresqls390 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqls390x | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlsrc | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresqlx86_64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Oracle Linux | 7 | postgresql-contribaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-contribx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-develaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-develx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-docsaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-docsx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-libsaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-libsx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-plperlaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-plperlx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-plpythonaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-plpythonx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-pltclaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-pltclx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-serveraarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-serverx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-staticaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-staticx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-testaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-testx86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-upgradeaarch64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Oracle Linux | 7 | postgresql-upgradex86_64 | Advisory build | 0:9.2.23-3.el7_4 | ELSA-2017-3402 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresqlsrc | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresqlx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-contribx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-debuginfox86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-develx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-docsx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-libsx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-plperlx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-plpythonx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-pltclx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-serverx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-staticx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-testx86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql94-postgresql-upgradex86_64 | Advisory build | 9.4.14-2.el6 | RHSA-2017:3403 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresqlsrc | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresqlx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-contribx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-debuginfox86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-develx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-docsx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-libsx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-plperlx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-plpythonx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-pltclx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-serverx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-staticx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql95-postgresql-testx86_64 | Advisory build | 9.5.9-4.el6 | RHSA-2017:3404 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresqlsrc | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresqlx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-contribx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-contrib-syspathsx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-debuginfox86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-develx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-docsx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-libsx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-plperlx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-plpythonx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-pltclx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-serverx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-server-syspathsx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-staticx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-syspathsx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-6 | rh-postgresql96-postgresql-testx86_64 | Advisory build | 9.6.5-2.el6 | RHSA-2017:3405 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-contribaarch64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-contribppc64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-contribppc64le | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-contribs390x | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-contribx86_64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfoaarch64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfoi686 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfoppc | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfoppc64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfoppc64le | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfos390 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfos390x | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-debuginfox86_64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-develaarch64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-develi686 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-develppc | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-develppc64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-develppc64le | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-devels390 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-devels390x | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-develx86_64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-docsaarch64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-docsppc64 | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
| Red Hat Enterprise Linux | RHEL-7 | postgresql-docsppc64le | Advisory build | 9.2.23-3.el7_4 | RHSA-2017:3402 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| 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 (affected) | redhat · cna |
Weaknesses
1- CWE-59
References
8- 101949 http://www.securityfocus.com/bid/101949
- 1039752 http://www.securitytracker.com/id/1039752
- RHSA-2017:3402 https://access.redhat.com/errata/RHSA-2017:3402
- RHSA-2017:3403 https://access.redhat.com/errata/RHSA-2017:3403
- RHSA-2017:3404 https://access.redhat.com/errata/RHSA-2017:3404
- RHSA-2017:3405 https://access.redhat.com/errata/RHSA-2017:3405
- https://www.postgresql.org/about/news/1801/
- https://www.postgresql.org/support/security/
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8f5bcdb61c6b14caf60b6248c6f330ff9348087f109d645ad1b254edca28a565
- Ingested
- 15 Oct 2026, 17:54:56 UTC
- Source record
- Official CVE record