Every CVE Search/ Get API key

CVE-2018-16850

postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and...

8.0 HighFix available

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

5.15%Up 3.5 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 CriticalCVSS: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 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
8.0 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 HighCVSS: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 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
8.0 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS 3.0
9.8 CriticalCVSS: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:

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:

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:

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

Affected packages
PackageAffectedFixed
postgresql
Alpine:v3.10
10.0 up to 11.1-r0
11.1-r0
postgresql
Alpine:v3.11
10.0 up to 11.1-r0
11.1-r0
postgresql
Alpine:v3.12
10.0 up to 11.1-r0
11.1-r0
postgresql
Alpine:v3.13
10.0 up to 11.1-r0
11.1-r0
postgresql
Alpine:v3.14
10.0 up to 11.1-r0
11.1-r0
postgresql
Alpine:v3.9
10.0 up to 11.1-r0
11.1-r0
postgresql14
Alpine:v3.15
before 11.1-r0
11.1-r0
postgresql14
Alpine:v3.16
before 11.1-r0
11.1-r0
postgresql14
Alpine:v3.17
before 11.1-r0
11.1-r0
postgresql14
Alpine:v3.18
before 11.1-r0
11.1-r0
Show 41 moreShow less
Affected packages
PackageAffectedFixed
postgresql14
Alpine:v3.19
before 11.1-r0
11.1-r0
postgresql14
Alpine:v3.20
before 11.1-r0
11.1-r0
postgresql15
Alpine:v3.17
before 11.1-r0
11.1-r0
postgresql15
Alpine:v3.18
before 11.1-r0
11.1-r0
postgresql15
Alpine:v3.19
before 11.1-r0
11.1-r0
postgresql15
Alpine:v3.20
before 11.1-r0
11.1-r0
rh-postgresql10-postgresql
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-contrib
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-contrib-syspaths
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-debuginfo
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-devel
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-docs
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-libs
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-plperl
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-plpython
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-pltcl
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-server
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-server-syspaths
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-static
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-syspaths
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
rh-postgresql10-postgresql-test
Red Hat:rhel_software_collections:3::el7
before 0:10.6-1.el7
0:10.6-1.el7
postgresql10
SUSE:Linux Enterprise Desktop 12 SP3
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Desktop 12 SP3
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Software Development Kit 12 SP3
before 10.6-1.6.1
10.6-1.6.1
postgresql10
SUSE:Linux Enterprise Server 12 SP3
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Server 12 SP3
before 10.6-1.6.1
10.6-1.6.1
postgresql10
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 10.6-1.6.1
10.6-1.6.1
postgresql10
SUSE:Linux Enterprise Desktop 12 SP4
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Desktop 12 SP4
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Software Development Kit 12 SP4
before 10.6-1.6.1
10.6-1.6.1
postgresql10
SUSE:Linux Enterprise Server 12 SP4
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Server 12 SP4
before 10.6-1.6.1
10.6-1.6.1
postgresql10
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
before 10.6-1.6.1
10.6-1.6.1
postgresql10-libs
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
before 10.6-1.6.1
10.6-1.6.1
postgresql10
SUSE:Linux Enterprise Module for Basesystem 15
before 10.6-4.8.1
10.6-4.8.1
postgresql10
SUSE:Linux Enterprise Module for Package Hub 15
before 10.6-4.8.1
10.6-4.8.1
postgresql10
SUSE:Linux Enterprise Module for Server Applications 15
before 10.6-4.8.1
10.6-4.8.1
postgresql-10
Ubuntu: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
postgresql10
openSUSE:Tumbleweed
before 10.18-1.3
10.18-1.3
postgresql11
openSUSE:Tumbleweed
before 11.13-1.3
11.13-1.3

History

History
WhenChangedSources
2026-11-03affectedOSV
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 41 moreShow less
MoveEnter Open