CVE-2018-16850CWE-89

postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ..

High · published November 13, 2018

CVSS v3.0
8.0
EPSS
5%
Percentile
92.4
In the wild
Unconfirmed
What it is

⚡ A crafty trigger definition can unleash a storm of SQL commands with superuser privileges! This high-severity vulnerability lurks in PostgreSQL versions before 11.1 and 10.6. 🔥 Think of it as a sneaky construction contractor who installs a secret door in the foundation. With the right blueprint, they can waltz in and make unauthorized changes to the building without anyone noticing! An attacker wielding this exploit can run arbitrary SQL statements as a superuser. This means they could potentially access, alter, or even delete sensitive data, leading to catastrophic data loss or unauthorized access. Your databases could be left wide open, facing an absolute disaster!

Put simply

Think of it as a sneaky construction contractor who installs a secret door in the foundation. With the right blueprint, they can waltz in and make unauthorized changes to the building without anyone noticing! This SQL injection vulnerability in pg_upgrade and pg_dump allows an attacker to use a specially crafted trigger definition to execute arbitrary SQL commands with full superuser privileges.

What to do

An attacker wielding this exploit can run arbitrary SQL statements as a superuser. This means they could potentially access, alter, or even delete sensitive data, leading to catastrophic data loss or unauthorized access. Your databases could be left wide open, facing an absolute disaster! Upgrade your PostgreSQL to version 11.1 or 10.6 or later immediately to close this loophole. Additionally, review your existing triggers to ensure no unauthorized changes are made. It's time to tighten those database bolts! You’ve got this! Follow these steps, and you’ll be the hero who keeps your data safe and sound! 🛡️

The record
Technical detail
CVSS v3.0
8.0 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.05150 · 92.4th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2018-11-13T15:00Z
EPSS history
Timeline
  • 13 NOV 15:00Z
    postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ..
    cvelistv5