SQL Injection in PostgreSQL
CVE-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 trigger definition, an attacker can cause arbitrary SQL statements to run, with superuser privileges.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.051, 92.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PostgreSQL
- The PostgreSQL Project — versions 11.1, 10.6
- Canonical Ubuntu Linux — versions 18.04, 18.10
- Red Hat Enterprise Linux — versions 7.0, 7.4, 7.5
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (lekctut/sdb-hw-13-01, pedr0alencar/vlab-metasploitable2). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- USN-3818-1 (vendor-advisory, Third Party Advisory)
- RHSA-2018:3757 (vendor-advisory, Third Party Advisory)
- www.postgresql.org/about/news/1905/ (Release Notes, Vendor Advisory)
- www.securitytracker.com/id/1042144 (Third Party Advisory, VDB Entry, vdb-entry)
- GLSA-201811-24 (vendor-advisory, Third Party Advisory, Mitigation)
- www.securityfocus.com/bid/105923 (Third Party Advisory, VDB Entry, vdb-entry)
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)