CVEfocus › CVE database › CVE-2017-12172

CVE-2017-12172

CVSS 6.5 MediumEPSS 0.6% (higher than 49% of CVEs)Published 2017-11-22Updated 2026-10-15Assigner: redhat

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.

CWE-59

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
12Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04postgresql-9.5Not affected
vulnerable_code_not_present
Ubuntu 14.04postgresql-9.1Not affected
vulnerable_code_not_present
Red Hat Enterprise Linux 7postgresqlFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-contribFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-develFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-docsFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-libsFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-plperlFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-plpythonFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-pltclFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-serverFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-staticFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-testFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 7postgresql-upgradeFixed0:9.2.23-3.el7_4RHSA-2017:3402
Red Hat Enterprise Linux 6postgresqlWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-develWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Will not fix
Red Hat Enterprise Linux 6postgresql-testWill not fix
Will not fix
Red Hat Enterprise Linux 5postgresqlWill not fix
Will not fix
Red Hat Enterprise Linux 5postgresql84Will not fix
Will not fix

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.