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.1th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 92nd percentile — 92.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.051 · newest: 0.051 · change: 0.000
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 proof-of-concept exploits
References
- usn.ubuntu.com/3818-1/ (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:3757 (vendor-advisory, Third Party Advisory)
- www.postgresql.org/about/news/1905/ (Release Notes, Vendor Advisory)
- www.securitytracker.com/id/1042144 (VDB Entry, Third Party Advisory, vdb-entry)
- security.gentoo.org/glsa/201811-24 (vendor-advisory, Third Party Advisory, Mitigation)
- www.securityfocus.com/bid/105923 (VDB Entry, Third Party Advisory, vdb-entry)
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2018-16850?
- CVE-2018-16850 is a critical-severity vulnerability in PostgreSQL, classified under SQL Injection. CVSS score: 9.8/10. Published 2018-11-13.
- How severe is CVE-2018-16850?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2018-16850 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.