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.
Conclusion & alert: CVE-2018-16850 is rated High Risk (67.9/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 1.32%). Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-04 | 0.50% | 1.32% | +0.82% |
| 2 | 2026-03-01 | 1.32% | 0.50% | -0.82% |
| 3 | 2026-02-04 | — | 1.32% | — |
Full EPSS history (45 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| 8.0 | 3.0 | HIGH |
|
2.1 | 5.9 | [email protected] |
| 7.5 | 2.0 | HIGH |
|
10.0 | 6.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
critical | CVE-2018-16850: 3 source package rows (postgresql, postgresql14, postgresql15); 23 state rows across 11 repos (3.10-main, 3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-community, 3.19-main, 3.20-community, 3.20-main, edge-community, edge-main); fixed 16, open 7. | https://security.alpinelinux.org/vuln/CVE-2018-16850 |
gentoo
|
normal | CVE-2018-16850: 1 GLSA(s) (201811-24), 1 atom(s) (dev-db/postgresql); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2018-16850 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2018-16850 |
ubuntu
|
medium | CVE-2018-16850 medium priority: Ubuntu including 4 source packages (postgresql-10, postgresql-9.1, postgresql-9.3, postgresql-9.5), 20 status rows across 5 suites (bionic, cosmic, trusty, upstream, xenial): DNE 12, not-affected 5, released 3. | https://ubuntu.com/security/CVE-2018-16850 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| postgresql | postgresql | >= 10.0, < 10.6 | cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
| postgresql | postgresql | >= 11.0, < 11.1 | cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* |
| redhat | enterprise_linux | 7.0 | cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* |
| redhat | enterprise_linux | 7.4 | cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:* |
| redhat | enterprise_linux | 7.5 | cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:* |
| redhat | enterprise_linux | 7.6 | cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:* |
| canonical | ubuntu_linux | 18.04 | cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
| canonical | ubuntu_linux | 18.10 | cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| http://www.securityfocus.com/bid/105923 | Third Party Advisory VDB Entry |
| http://www.securitytracker.com/id/1042144 | Third Party Advisory VDB Entry |
| https://access.redhat.com/errata/RHSA-2018:3757 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850 | Issue Tracking Patch Third Party Advisory |
| https://security.gentoo.org/glsa/201811-24 | Mitigation Third Party Advisory |
| https://usn.ubuntu.com/3818-1/ | Third Party Advisory |
| https://www.postgresql.org/about/news/1905/ | Release Notes Vendor Advisory |