Live threats

All CVEs / Postgresql

CVE-2018-16850Postgresql

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
5.1%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Nov 13, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Postgresql.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
postgresqlpostgresql≥ 10.0 < 10.6
postgresqlpostgresql≥ 11.0 < 11.1
redhatenterprise_linux7.0
redhatenterprise_linux7.4
redhatenterprise_linux7.5
redhatenterprise_linux7.6
canonicalubuntu_linux18.04
canonicalubuntu_linux18.10

Official sources

References

Links published by the sources. Open them with care.