CVE-2020-14350: Input Validation
A flaw was found in PostgreSQL, where some PostgreSQL extensions did not use the searchpath safely in their installation script. This flaw allows an attacker with sufficient privileges to trick an administrator into executing a specially crafted script during the extension's installation or update. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Other sources
It was found that some PostgreSQL extensions did not use searchpath safely in their installation script. An attacker with sufficient privileges could use this flaw to trick an administrator into executing a specially crafted script, during the installation or update of such extension. This affects PostgreSQL versions before 12.4, before 11.9, before 10.14, before 9.6.19, and before 9.5.23.
When a superuser issues certain CREATE EXTENSION statements, users may be able to execute arbitrary SQL functions under the identity of that superuser. The attacker must have permission to create objects in the new extension's schema or a schema of a prerequisite extension. Not all extensions are vulnerable. In addition to correcting the extensions provided with PostgreSQL, the project is issuing guidance for third-party extension authors to secure their own work.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/rh-postgresql96-postgresqlto a version that resolves this vulnerability.Fixed in 0:9.6.19-1.el7 - Upgrade
Upgrade
redhat/rh-postgresql10-postgresqlto a version that resolves this vulnerability.Fixed in 0:10.14-1.el7 - Upgrade
Upgrade
redhat/rh-postgresql12-postgresqlto a version that resolves this vulnerability.Fixed in 0:12.4-1.el7 - Upgrade
Upgrade
redhat/rhvm-applianceto a version that resolves this vulnerability.Fixed in 0:4.4-20210310.0.el8e - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 12.4 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 11.9 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 10.14 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.6.19 - Upgrade
Upgrade
redhat/postgresql andto a version that resolves this vulnerability.Fixed in 9.5.23 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.9 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.14 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.6.19 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.5.23 - Compensating control
Limit who can install or update PostgreSQL extensions (restrict privileges so attackers cannot trick an administrator during CREATE EXTENSION).
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2020-14350?
CVE-2020-14350 is a vulnerability found in PostgreSQL that allows an attacker to execute a specially crafted script during the installation or update of certain PostgreSQL extensions.
How severe is CVE-2020-14350?
CVE-2020-14350 has a severity rating of 7.1 (high).
Which versions of PostgreSQL are affected by CVE-2020-14350?
PostgreSQL versions 12.4, 11.9, 10.14, 9.6.19, and 9.5.23 are affected by CVE-2020-14350.
How can an attacker exploit CVE-2020-14350?
An attacker with sufficient privileges can trick an administrator into executing a specially crafted script during the extension's installation or update.
Are there any references available for CVE-2020-14350?
Yes, you can find more information about CVE-2020-14350 in the following references: [link 1](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1868670), [link 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1868666), [link 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1868668).