CVE-2018-16850
published high CVSS 3.0 · 8.0postgresql: SQL injection in pg_upgrade and pg_dump, via CREATE TRIGGER ... REFERENCING
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| The PostgreSQL Project | — | postgresql11.1 · 10.6 | Affected | Not stated | redhat |
| Alpine Linux | v3.10 | postgresql | Fixed | 11.1-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresqlaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| SUSE / openSUSE | SLE-12-SP3 | libecpg6aarch64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| Alpine Linux | v3.11 | postgresql | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.12 | postgresql | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.13 | postgresql | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.14 | postgresql | Fixed | 11.1-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.9 | postgresql | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.15 | postgresql14 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql14 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql14 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql15 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql14 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql15 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql14 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql15 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql14 | Fixed | 11.1-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 11.1-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresqlppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresqls390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresqlsrc | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresqlx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contribaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contribppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contribs390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contribx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contrib-syspathsaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contrib-syspathsppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contrib-syspathss390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-contrib-syspathsx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-debuginfoaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-debuginfoppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-debuginfos390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-debuginfox86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-develaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-develppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-devels390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-develx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-docsaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-docsppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-docss390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-docsx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-libsaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-libsppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-libss390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-libsx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plperlaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plperlppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plperls390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plperlx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plpythonaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plpythonppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plpythons390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-plpythonx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-pltclaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-pltclppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-pltcls390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-pltclx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-serveraarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-serverppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-servers390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-serverx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-server-syspathsaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-server-syspathsppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-server-syspathss390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-server-syspathsx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-staticaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-staticppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-statics390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-staticx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-syspathsaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-syspathsppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-syspathss390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-syspathsx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-testaarch64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-testppc64le | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-tests390x | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql10-postgresql-testx86_64 | Advisory build | 10.6-1.el7 | RHSA-2018:3757 |
| SUSE / openSUSE | SLE-12-SP3 | libecpg6ppc64le | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libecpg6s390x | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libecpg6x86_64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libpq5aarch64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libpq5ppc64le | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libpq5s390x | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libpq5x86_64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libpq5-32bits390x | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | libpq5-32bitx86_64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10aarch64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10ppc64le | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10s390x | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10x86_64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-contribaarch64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-contribppc64le | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-contribs390x | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-contribx86_64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-develaarch64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-develppc64le | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-devels390x | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-develx86_64 | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
| SUSE / openSUSE | SLE-12-SP3 | postgresql10-docsnoarch | Advisory build | 10.6-1.6.1 | SUSE-SU-2018:3770-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.0 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| The PostgreSQL Project | postgresql | 11.1 (affected)10.6 (affected) | redhat · cna |
Weaknesses
1- CWE-89
References
7- 105923 http://www.securityfocus.com/bid/105923
- 1042144 http://www.securitytracker.com/id/1042144
- RHSA-2018:3757 https://access.redhat.com/errata/RHSA-2018:3757
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850
- GLSA-201811-24 https://security.gentoo.org/glsa/201811-24
- USN-3818-1 https://usn.ubuntu.com/3818-1/
- https://www.postgresql.org/about/news/1905/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4228862a44d96d16001db1626811222248ed733d850d8222b19670d58e9b8b3f
- Ingested
- 23 Sep 2026, 07:43:53 UTC
- Source record
- Official CVE record