First published: Mon Nov 05 2018(Updated: )
Postgresql before versions 11.1 and 10.6 are vulnerable to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Using a purpose-crafted trigger definition, an attacker can cause arbitrary SQL statements to run, with superuser privileges, during the next pg_upgrade of the database or the next pg_dump dump/restore cycle. The attack requires CREATE privilege on some non-temporary schema or TRIGGER privilege on some table. This is exploitable in the default configuration, where all users have CREATE privilege on schema "public".
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/postgresql | <11.1 | 11.1 |
redhat/postgresql | <10.6 | 10.6 |
PostgreSQL PostgreSQL | >=10.0<10.6 | |
PostgreSQL PostgreSQL | >=11.0<11.1 | |
Redhat Enterprise Linux | =7.0 | |
Redhat Enterprise Linux | =7.4 | |
Redhat Enterprise Linux | =7.5 | |
Redhat Enterprise Linux | =7.6 | |
Canonical Ubuntu Linux | =18.04 | |
Canonical Ubuntu Linux | =18.10 | |
ubuntu/postgresql-10 | <10.6-0ubuntu0.18.04.1 | 10.6-0ubuntu0.18.04.1 |
ubuntu/postgresql-10 | <10.6-0ubuntu0.18.10.1 | 10.6-0ubuntu0.18.10.1 |
ubuntu/postgresql-10 | <10.6 | 10.6 |
debian/postgresql-10 | ||
debian/postgresql-9.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of CVE-2018-16850 is critical with a CVSS score of 9.8.
CVE-2018-16850 affects PostgreSQL versions before 11.1 and 10.6.
An attacker can exploit CVE-2018-16850 by using a purpose-crafted trigger definition to cause arbitrary SQL statements to run with superuser privileges.
Software packages affected by CVE-2018-16850 include PostgreSQL versions before 11.1 and 10.6, as well as Redhat Enterprise Linux and Canonical Ubuntu Linux.
More information about CVE-2018-16850 can be found at the following references: [Bugzilla Redhat](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850), [PostgreSQL News](https://www.postgresql.org/about/news/1905/), [Ubuntu Security Notices](https://usn.ubuntu.com/3818-1/)