# CVE-2018-16850

- Priority: **Routine**
- Reason: Not severe (CVSS 8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-11-13 · Modified: 2024-08-05
- Aliases: ALPINE-CVE-2018-16850, SUSE-SU-2018:3770-1, SUSE-SU-2018:3770-2, SUSE-SU-2018:3942-1, RHSA-2018:3757, UBUNTU-CVE-2018-16850, USN-3818-1
- Record: https://cvemate.com/vulnerability/CVE-2018-16850 · JSON: https://cvemate.com/vulnerability/CVE-2018-16850/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 5.15%, percentile 92.645%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 40)

- alpine postgresql (Alpine Linux): ≥ 10.0, \< 11.1-r0 \| ≥ 11.0, \< 11.1-r0
- alpine postgresql14 (Alpine Linux): \< 11.1-r0
- alpine postgresql15 (Alpine Linux): \< 11.1-r0
- canonical ubuntu\_linux: 18.04 \| 18.10
- ubuntu postgresql-10 (Ubuntu): \< 10.6-0ubuntu0.18.04.1
- postgresql postgresql: ≥ 10.0, \< 10.6 \| ≥ 11.0, \< 11.1
- redhat enterprise\_linux: 7.0 \| 7.4 \| 7.5 \| 7.6
- redhat rh-postgresql10-postgresql (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-contrib (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-contrib-syspaths (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-debuginfo (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-devel (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-docs (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-libs (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-plperl (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-plpython (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-pltcl (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-server (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-server-syspaths (Red Hat): \< 0:10.6-1.el7
- redhat rh-postgresql10-postgresql-static (Red Hat): \< 0:10.6-1.el7

## References (first 20 of 21)

- <https://usn.ubuntu.com/3818-1/>
- <https://access.redhat.com/errata/RHSA-2018:3757>
- <https://www.postgresql.org/about/news/1905/>
- <http://www.securitytracker.com/id/1042144>
- <https://security.gentoo.org/glsa/201811-24>
- <http://www.securityfocus.com/bid/105923>
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850>
- <https://security.alpinelinux.org/vuln/CVE-2018-16850>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20183770-1/>
- <https://bugzilla.suse.com/1114837>
- <https://www.suse.com/security/cve/CVE-2018-16850>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20183770-2/>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20183942-1/>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1645937>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_3757.json>
- <https://access.redhat.com/security/cve/CVE-2018-16850>
- <https://www.cve.org/CVERecord?id=CVE-2018-16850>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-16850>
- <https://ubuntu.com/security/CVE-2018-16850>

---

Data as of 2026-12-05T03:28:23.029Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
