Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.8

CVE-2026-116316: PostgreSQL lets crafted type run attacker SQL

CVE-2026-116316 · published 14 days ago
Summary

In certain PostgreSQL versions, a user can create a temporary data type (like a domain, enum, or range) that tricks the database into running any SQL the attacker wants when another session later uses an unqualified type name. This can let the attacker execute commands with the same privileges as the legitimate user. Update PostgreSQL to the latest patch level for your version or apply the vendor’s security update to close the gap.

What to do
  • Update debian postgresql-17 to version 17.12-0+deb13u1.
  • Update bellsoft postgresql17 to version 17.12-r0.
  • Update debian postgresql-15 to version 15.20-0+deb12u1.
  • Update bellsoft postgresql15 to version 15.20-r0.
  • Update bellsoft postgresql18 to version 18.7-r0.
  • Update postgresql to version 18.7 or later.
Affected software
Ecosystem VendorProductAffected versions
– – postgresql < 18.7
Debian:12 debian postgresql-15 < 15.20-0+deb12u1
Fix: upgrade to 15.20-0+deb12u1
Debian:13 debian postgresql-17 < 17.12-0+deb13u1
Fix: upgrade to 17.12-0+deb13u1
Debian:14 debian postgresql-18 All versions
Ubuntu:Pro:14.04:LTS canonical postgresql-9.3 All versions
Ubuntu:Pro:16.04:LTS canonical postgresql-9.5 All versions
Ubuntu:Pro:18.04:LTS canonical postgresql-10 All versions
Ubuntu:20.04:LTS canonical postgresql-12 All versions
Ubuntu:22.04:LTS canonical postgresql-14 All versions
Ubuntu:24.04:LTS canonical postgresql-16 All versions
Ubuntu:26.10 canonical postgresql-18 All versions
Alpaquita:25 bellsoft postgresql17 >= 17.5-r0, < 17.12-r0
Fix: upgrade to 17.12-r0
Alpaquita:23 bellsoft postgresql15 >= 15.2-r0, < 15.20-r0
Fix: upgrade to 15.20-r0
Alpaquita:stream bellsoft postgresql18 >= 18.0-r0, < 18.7-r0
Fix: upgrade to 18.7-r0
Original advisory text
BELL-CVE-2026-116316
Improper protection of alternate path in PostgreSQL security-restricted operations allows an object creator to execute arbitrary SQL as the operation's caller, via a domain, enum, or range type created in pg_temp. The victim session must later run a query containing an unqualified type name, e.g. "SELECT '1'::bigint"; autovacuum and other common security-restricted operation users do not do so, so they are unaffected. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
8.8 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-424Improper Protection of Alternate Path
Timeline
Published12 Nov 2026
Updated26 Nov 2026
First seen12 Nov 2026
Track software like this
Free during beta