CVE-2018-16850
postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and...
CVE-2018-16850 is a high vulnerability (CVSS 8.0) in Postgresql, published November 8, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.15%, the 92nd percentile. Fixed in postgresql 11.1-r0.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.0
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.
- Record
CVE-2018-16850- CVSS 3.0
- 8.0 High
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
EUVDEUVD-2018-8644
8.0
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.
- Record
EUVD-2018-8644- CVSS 3.0
- 8.0 High
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-h6p9-49w4-8mm8
9.8
postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and...
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.
- Record
GHSA-h6p9-49w4-8mm8- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
NVD
9.8
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.
- Record
CVE-2018-16850- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.0 High
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-16850
9.8
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.
- Record
ALPINE-CVE-2018-16850- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVBELL-CVE-2018-16850
9.8
CVE-2018-16850 does not affect BellSoft software
- Record
BELL-CVE-2018-16850- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 9 moreShow less
OSV
9.8
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.
- Record
CVE-2018-16850- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2018:3757
8.0
Red Hat Security Advisory: rh-postgresql10-postgresql security update
- Record
RHSA-2018:3757- CVSS 3.0
- 8.0 High
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-16850
9.8
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.
- Record
UBUNTU-CVE-2018-16850- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.0 High
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11184-1 No score
postgresql10-10.18-1.3 on GA media
These are all security issues fixed in the postgresql10-10.18-1.3 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11184-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11185-1 No score
postgresql11-11.13-1.3 on GA media
These are all security issues fixed in the postgresql11-11.13-1.3 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11185-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:3770-1 No score
Security update for postgresql10
This update for postgresql10 fixes the following issues:
Security issue fixed:
- CVE-2018-16850: Fixed improper quoting of transition table names when pg_dump emits CREATE TRIGGER could have caused privilege escalation (bsc#1114837).
Non-security issues fixed:
- Update to release 10.6:
- Record
SUSE-SU-2018:3770-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:3770-2 No score
Security update for postgresql10
This update for postgresql10 fixes the following issues:
Security issue fixed:
- CVE-2018-16850: Fixed improper quoting of transition table names when pg_dump emits CREATE TRIGGER could have caused privilege escalation (bsc#1114837).
Non-security issues fixed:
- Update to release 10.6:
- Record
SUSE-SU-2018:3770-2- Updated
- 2026-11-02
OSVSUSE-SU-2018:3942-1 No score
Security update for postgresql10
This update for postgresql10 fixes the following issues:
Security issue fixed:
- CVE-2018-16850: Fixed improper quoting of transition table names when pg_dump emits CREATE TRIGGER could have caused privilege escalation (bsc#1114837).
Non-security issues fixed:
- Update to release 10.6:
- Record
SUSE-SU-2018:3942-1- Updated
- 2026-11-02
OSVUSN-3818-1 No score
postgresql-10 vulnerability
It was discovered that PostgreSQL incorrectly handled certain trigger definitions when running pg_upgrade or pg_dump. A remote attacker could possibly use this issue to execute arbitrary SQL statements with superuser privileges.
- Record
USN-3818-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
postgresqlAlpine:v3.10 |
10.0 up to 11.1-r0 | 11.1-r0 |
postgresqlAlpine:v3.11 |
10.0 up to 11.1-r0 | 11.1-r0 |
postgresqlAlpine:v3.12 |
10.0 up to 11.1-r0 | 11.1-r0 |
postgresqlAlpine:v3.13 |
10.0 up to 11.1-r0 | 11.1-r0 |
postgresqlAlpine:v3.14 |
10.0 up to 11.1-r0 | 11.1-r0 |
postgresqlAlpine:v3.9 |
10.0 up to 11.1-r0 | 11.1-r0 |
postgresql14Alpine:v3.15 |
before 11.1-r0 | 11.1-r0 |
postgresql14Alpine:v3.16 |
before 11.1-r0 | 11.1-r0 |
postgresql14Alpine:v3.17 |
before 11.1-r0 | 11.1-r0 |
postgresql14Alpine:v3.18 |
before 11.1-r0 | 11.1-r0 |
Show 41 moreShow less
| Package | Affected | Fixed |
|---|---|---|
postgresql14Alpine:v3.19 |
before 11.1-r0 | 11.1-r0 |
postgresql14Alpine:v3.20 |
before 11.1-r0 | 11.1-r0 |
postgresql15Alpine:v3.17 |
before 11.1-r0 | 11.1-r0 |
postgresql15Alpine:v3.18 |
before 11.1-r0 | 11.1-r0 |
postgresql15Alpine:v3.19 |
before 11.1-r0 | 11.1-r0 |
postgresql15Alpine:v3.20 |
before 11.1-r0 | 11.1-r0 |
rh-postgresql10-postgresqlRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-contribRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-contrib-syspathsRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-debuginfoRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-develRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-docsRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-libsRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-plperlRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-plpythonRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-pltclRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-serverRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-server-syspathsRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-staticRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-syspathsRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
rh-postgresql10-postgresql-testRed Hat:rhel_software_collections:3::el7 |
before 0:10.6-1.el7 | 0:10.6-1.el7 |
postgresql10SUSE:Linux Enterprise Desktop 12 SP3 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Desktop 12 SP3 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Software Development Kit 12 SP3 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10SUSE:Linux Enterprise Server 12 SP3 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Server 12 SP3 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10SUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10SUSE:Linux Enterprise Desktop 12 SP4 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Desktop 12 SP4 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Software Development Kit 12 SP4 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10SUSE:Linux Enterprise Server 12 SP4 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Server 12 SP4 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10SUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10-libsSUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 10.6-1.6.1 | 10.6-1.6.1 |
postgresql10SUSE:Linux Enterprise Module for Basesystem 15 |
before 10.6-4.8.1 | 10.6-4.8.1 |
postgresql10SUSE:Linux Enterprise Module for Package Hub 15 |
before 10.6-4.8.1 | 10.6-4.8.1 |
postgresql10SUSE:Linux Enterprise Module for Server Applications 15 |
before 10.6-4.8.1 | 10.6-4.8.1 |
postgresql-10Ubuntu:18.04:LTS |
before 10.6-0ubuntu0.18.04.1, plus listed versions 10.1-110.1-210.2-110.3-110.4-0ubuntu0.18.0410.5-0ubuntu0.18.04 |
10.6-0ubuntu0.18.04.1 |
postgresql10openSUSE:Tumbleweed |
before 10.18-1.3 | 10.18-1.3 |
postgresql11openSUSE:Tumbleweed |
before 11.13-1.3 | 11.13-1.3 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | affected | OSV |
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
usn.ubuntu.com/3818-1
access.redhat.com/errata/RHSA-2018:3757
postgresql.org/about/news/1905
securitytracker.com/id/1042144
security.gentoo.org/glsa/201811-24
securityfocus.com/bid/105923
Show 41 moreShow less
bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850
nvd.nist.gov/vuln/detail/CVE-2018-16850
github.com/advisories/GHSA-h6p9-49w4-8mm8
security.alpinelinux.org/vuln/CVE-2018-16850
docs.bell-sw.com/security/cves/CVE-2018-16850
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1645937
security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_3757.json
access.redhat.com/security/cve/CVE-2018-16850
cve.org/CVERecord?id=CVE-2018-16850
suse.com/support/update/announcement/2018/suse-su-20183770-1
bugzilla.suse.com/1114837
suse.com/security/cve/CVE-2018-16850
suse.com/support/update/announcement/2018/suse-su-20183770-2
suse.com/support/update/announcement/2018/suse-su-20183942-1
ubuntu.com/security/CVE-2018-16850
ubuntu.com/security/notices/USN-3818-1
suse.com/security/cve/CVE-2017-15098
suse.com/security/cve/CVE-2017-15099
suse.com/security/cve/CVE-2018-1052
suse.com/security/cve/CVE-2018-1053
suse.com/security/cve/CVE-2018-1058
suse.com/security/cve/CVE-2018-10915
suse.com/security/cve/CVE-2018-10925
suse.com/security/cve/CVE-2018-1115
suse.com/security/cve/CVE-2019-10130
suse.com/security/cve/CVE-2019-10164
suse.com/security/cve/CVE-2019-10208
suse.com/security/cve/CVE-2020-14349
suse.com/security/cve/CVE-2020-14350
suse.com/security/cve/CVE-2020-1720
suse.com/security/cve/CVE-2020-25694
suse.com/security/cve/CVE-2020-25695
suse.com/security/cve/CVE-2020-25696
suse.com/security/cve/CVE-2021-32027
suse.com/security/cve/CVE-2021-32028
suse.com/security/cve/CVE-2019-10129
suse.com/security/cve/CVE-2019-10209
suse.com/security/cve/CVE-2021-32029
suse.com/security/cve/CVE-2021-3393
suse.com/security/cve/CVE-2021-3677