CVE-2018-16850

CRITICAL
9.8
CVSS Score
Published: November 13, 2018 at 03:00 PM UTC
Updated: June 17, 2026 at 01:44 AM UTC
3 products affected across 3 vendorsUbuntu LinuxEnterprise LinuxPostgreSQL

Using postgresql by The PostgreSQL Project?

Get instant alerts when new vulnerabilities affect postgresql - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL9.8
Exploit prediction
EPSS 5%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

10.0 ≤ v < 10.611.0 ≤ v < 11.110.611.1
Affected range stops below 10.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.1, so it looks safe — our inference, not a vendor statement

References (7)

VDB Entryx_refsource_BIDThird Party Advisory
http://www.securityfocus.com/bid/105923
VDB Entryx_refsource_SECTRACKThird Party Advisory
http://www.securitytracker.com/id/1042144
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2018:3757
x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16850
Vendor Advisoryx_refsource_GENTOOMitigationThird Party Advisory
https://security.gentoo.org/glsa/201811-24
Vendor Advisoryx_refsource_UBUNTUThird Party Advisory
https://usn.ubuntu.com/3818-1/
x_refsource_CONFIRMRelease NotesVendor Advisory
https://www.postgresql.org/about/news/1905/

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-89

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card