CVE-2018-16850SQL Injection in Postgresql

CWE-89SQL Injection9 documents6 sources
Severity
9.8CRITICALNVD
EPSS
1.3%
top 20.11%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 13
Latest updateMay 13

Description

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages3 packages

NVDpostgresql/postgresql10.010.6+1
Alpinepostgresql/postgresql< 11.1-r0+5
CVEListV5the_postgresql_project/postgresql10.6, 11.1+1

Also affects: Ubuntu Linux 18.04, 18.10, Enterprise Linux 7.0, 7.4, 7.5, 7.6

Patches

🔴Vulnerability Details

2
GHSA
GHSA-h6p9-49w4-8mm8: postgresql before versions 112022-05-13
OSV
CVE-2018-16850: postgresql before versions 112018-11-13

📋Vendor Advisories

2
Ubuntu
PostgreSQL vulnerability2018-11-14
Red Hat
postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING2018-11-08

💬Community

4
Bugzilla
CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]2018-11-13
Bugzilla
CVE-2018-16850 mingw-postgresql: postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [epel-7]2018-11-13
Bugzilla
CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING [fedora-all]2018-11-13
Bugzilla
CVE-2018-16850 postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING2018-11-05