Critical severity9.8NVD Advisory· Published Nov 13, 2018· Updated Jun 17, 2026
CVE-2018-16850
CVE-2018-16850
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
28cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*range: >=10.0,<10.6
- (no CPE)range: <11.1, <10.6
- (no CPE)range: 11.1
cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*+ 1 more
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*+ 3 more
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*
- osv-coords19 versionspkg:rpm/opensuse/postgresql10&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/postgresql11&distro=openSUSE%20Tumbleweedpkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/postgresql10&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/postgresql10-libs&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4
< 10.18-1.3+ 18 more
- (no CPE)range: < 10.18-1.3
- (no CPE)range: < 11.13-1.3
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-4.8.1
- (no CPE)range: < 10.6-4.8.1
- (no CPE)range: < 10.6-4.8.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
- (no CPE)range: < 10.6-1.6.1
Patches
Vulnerability mechanics
References
7- bugzilla.redhat.com/show_bug.cginvdIssue TrackingPatchThird Party Advisory
- www.securityfocus.com/bid/105923nvdThird Party AdvisoryVDB Entry
- www.securitytracker.com/id/1042144nvdThird Party AdvisoryVDB Entry
- access.redhat.com/errata/RHSA-2018:3757nvdThird Party Advisory
- security.gentoo.org/glsa/201811-24nvdMitigationThird Party Advisory
- usn.ubuntu.com/3818-1/nvdThird Party Advisory
- www.postgresql.org/about/news/1905/nvdRelease NotesVendor Advisory
News mentions
0No linked articles in our index yet.