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.

PackageEcosystemFixed in
postgresql14Alpine11.1-r0
postgresqlAlpine11.1-r0
postgresql15Alpine11.1-r0
postgresqlpostgresql11.1, 10.6
postgresql-10Ubuntu:18.04:LTS10.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

VendorProductVersions
The PostgreSQL Projectpostgresql11.1, 10.6
alpinepostgresql140
alpinepostgresql0
alpinepostgresql150
The PostgreSQL Projectpostgresql11.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›