CVE-2018-16850: postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ...
CVE-2018-16850 affects 7 listed versions of PostgreSQL in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
PostgreSQL
7 of 250 listed versions are affected. Fixed in 11.1, 10.6. The newest release, 19.0, is not affected.
11.0 10.5 10.4 10.3 10.2 10.1 10.0
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by Red Hat on 13 November 2018. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2018-16850 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.