CWE
89
Advisory Published
CVE Published
CVE Published
Updated

CVE-2018-16850: SQL Injection

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2018-16850?

    The severity of CVE-2018-16850 is critical with a CVSS score of 9.8.

  • How does CVE-2018-16850 affect PostgreSQL?

    CVE-2018-16850 affects PostgreSQL versions before 11.1 and 10.6.

  • How can an attacker exploit CVE-2018-16850?

    An attacker can exploit CVE-2018-16850 by using a purpose-crafted trigger definition to cause arbitrary SQL statements to run with superuser privileges.

  • Which software packages are affected by CVE-2018-16850?

    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.

  • Where can I find more information about CVE-2018-16850?

    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/)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203