VDB
CVE-2018-16850
CVE-2018-16850
PUBLISHED
CVSS 8 HIGH
Reported by redhat · Published November 13, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql14 | Alpine | 11.1-r0 |
| postgresql | Alpine | 11.1-r0 |
| postgresql15 | Alpine | 11.1-r0 |
| postgresql | postgresql | 11.1, 10.6 |
| postgresql-10 | Ubuntu:18.04:LTS | 10.6-0ubuntu0.18.04.1 |
Risk scores
CVSS 3.0
8
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| The PostgreSQL Project | postgresql | 11.1, 10.6 |
| alpine | postgresql14 | 0 |
| alpine | postgresql | 0 |
| alpine | postgresql15 | 0 |
| The PostgreSQL Project | postgresql | 11.1, 10.6 |
Timeline
- Nov 8, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (4 in total, the first dated here)
- Sep 23, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-16850
vulnetix vdb fixes CVE-2018-16850
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-16850/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3818-1 vendor-advisoryx_refsource_UBUNTU
- RHSA-2018:3757 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- 1042144 vdb-entryx_refsource_SECTRACK
- GLSA-201811-24 vendor-advisoryx_refsource_GENTOO
- 105923 vdb-entryx_refsource_BID
- x_refsource_CONFIRM