← Vulnerability feed

Vulnerability record · CVE-2018-16850 · published 13 November 2018

CVE-2018-16850: Postgresql sql injection vulnerability

Postgresql · Postgresql

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.

9.8 CVSS 3.1 Critical EPSS 5.1% · top 7.9% CWE-89 · SQL injection
9.8CVSS 3.1 base score, v2 7.5
5.1%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
14References
17 Jun 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.securityfocus.com/bid/105923 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1042144 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:3757 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850 Issue TrackingPatchThird Party Advisory
https://security.gentoo.org/glsa/201811-24 MitigationThird Party Advisory
https://usn.ubuntu.com/3818-1/ Third Party Advisory
https://www.postgresql.org/about/news/1905/ Release NotesVendor Advisory
http://www.securityfocus.com/bid/105923 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1042144 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:3757 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850 Issue TrackingPatchThird Party Advisory
https://security.gentoo.org/glsa/201811-24 MitigationThird Party Advisory
https://usn.ubuntu.com/3818-1/ Third Party Advisory
https://www.postgresql.org/about/news/1905/ Release NotesVendor Advisory

Track CVE-2018-16850 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-11651SaltStack Salt master authentication bypass in ClearFuncsSaltStack Salt before 2019.2.4 and 3000 before 3000.2 fails to properly validate method calls in the salt-master ClearFuncs class, allowing remote un…KEVEPSS 97%analysed9.8CVE-2020-7247OpenSMTPD MAIL FROM command injection allows remote root code executionOpenSMTPD 6.6, as shipped in OpenBSD 6.6 and other products, mishandles input validation in smtp_mailaddr in smtp_session.c, returning an incorrect v…KEVEPSS 99%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2019-16928Exim heap buffer overflow in string_vformat via long EHLO commandExim 4.92 through 4.92.2 contains a heap-based buffer overflow in string_vformat in string.c triggered by a long EHLO command, allowing remote code e…KEVEPSS 42%analysed9.8CVE-2019-10149Exim MTA improper recipient validation leads to remote command executionExim versions 4.87 through 4.91 fail to properly validate recipient addresses in the deliver_message() function in /src/deliver.c, allowing command i…KEVEPSS 100%analysed9.8CVE-2018-14667RichFaces Framework EL injection enables unauthenticated remote code executionRichFaces Framework 3.X through 3.3.4 is vulnerable to Expression Language injection through the UserResource resource. A remote, unauthenticated att…KEVEPSS 74%analysed9.8CVE-2018-6789Exim SMTP base64d buffer overflow allows remote code executionExim before 4.90.1 contains a buffer overflow in the base64d function of its SMTP listener. A handcrafted message can trigger the overflow, and the f…KEVEPSS 82%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed

Source: NIST National Vulnerability Database (record CVE-2018-16850), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.