CVE-2018-16850
published 2018-11-13CVE-2018-16850: postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. Using a purpose-crafted…
PriorityP358critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
5.15%
91.5th percentile
postgresql before versions 11.1, 10.6 is vulnerable to a 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.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| postgresql | postgresql | >= 0 < 11.1-r0 | 11.1-r0 |
| postgresql | postgresql | >= 0 < 11.1-r0 | 11.1-r0 |
| postgresql | postgresql | >= 0 < 11.1-r0 | 11.1-r0 |
| postgresql | postgresql | >= 0 < 11.1-r0 | 11.1-r0 |
| postgresql | postgresql | >= 0 < 11.1-r0 | 11.1-r0 |
| postgresql | postgresql | >= 0 < 11.1-r0 | 11.1-r0 |
| postgresql | postgresql | >= 10.0 < 10.6 | 10.6 |
| postgresql | postgresql | >= 11.0 < 11.1 | 11.1 |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
| the_postgresql_project | postgresql | — | — |
| the_postgresql_project | postgresql | — | — |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv3.08.0HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PostgreSQL vulnerability
vendor_ubuntu·2018-11-14
CVE-2018-16850 PostgreSQL vulnerability
Title: PostgreSQL vulnerability
Summary: PostgreSQL could be made to run SQL statements as the administrator.
It was discovered that PostgreSQL incorrectly handled certain trigger
definitions when running pg_upgrade or pg_dump. A remote attacker could
possibly use this issue to execute arbitrary SQL statements with superuser
privileges.
Instructions: This update uses a new upstream release, which includes additional bug
fixes. After a standard system update you need to restart PostgreSQL to
make all the necessary changes.
Red Hat
postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING
vendor_redhat·2018-11-08·CVSS 9.8
CVE-2018-16850 [CRITICAL] CWE-89 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING
postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING
postgresql before versions 11.1, 10.6 is vulnerable to a 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.
A SQL Injection flaw has been discovered in PostgreSQL server in the way triggers that enable transition relations are dumped. The transition relation name is not correctly quoted and it may allow an attacker with CREATE privilege on some non-temporary schema or TRIGGER privilege on some table to create a malicious trigger that, when dumped and restored, would result in additional SQL statements being executed.
Statement: This issue did not af
GHSA
GHSA-h6p9-49w4-8mm8: postgresql before versions 11
ghsa_unreviewed·2022-05-13
CVE-2018-16850 [CRITICAL] CWE-89 GHSA-h6p9-49w4-8mm8: postgresql before versions 11
postgresql before versions 11.1, 10.6 is vulnerable to a 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.
OSV
CVE-2018-16850: postgresql before versions 11
osv·2018-11-13·CVSS 9.8
CVE-2018-16850 [CRITICAL] CVE-2018-16850: postgresql before versions 11
postgresql before versions 11.1, 10.6 is vulnerable to a 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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]
bugzilla·2018-11-13·CVSS 9.8
CVE-2018-16850 [CRITICAL] CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]
CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit messag
Bugzilla
CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [epel-7]
bugzilla·2018-11-13·CVSS 9.8
CVE-2018-16850 [CRITICAL] CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [epel-7]
CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Dis
Bugzilla
CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]
bugzilla·2018-11-13·CVSS 9.8
CVE-2018-16850 [CRITICAL] CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]
CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this iss
Bugzilla
CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING
bugzilla·2018-11-05·CVSS 9.8
CVE-2018-16850 [CRITICAL] CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING
CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING
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".
Discussion:
External References:
https://www.postgresql.org/about/news/1905/
---
Created mingw-postgresql tracking bugs for this issue:
http://www.securityfocus.com/bid/105923http://www.securitytracker.com/id/1042144https://access.redhat.com/errata/RHSA-2018:3757https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850https://security.gentoo.org/glsa/201811-24https://usn.ubuntu.com/3818-1/https://www.postgresql.org/about/news/1905/http://www.securityfocus.com/bid/105923http://www.securitytracker.com/id/1042144https://access.redhat.com/errata/RHSA-2018:3757https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850https://security.gentoo.org/glsa/201811-24https://usn.ubuntu.com/3818-1/https://www.postgresql.org/about/news/1905/
2018-11-13
Published