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

CVE-2026-116303: PostgreSQL lets users run restricted conversion functions

CVE-2026-116303 · published 6 days ago
Summary

In certain versions of PostgreSQL, a database user can trigger a type‑conversion routine (a cast function) even when they do not have permission to run that routine. This can be done through features like foreign keys or JSON conversion, potentially exposing data that should be hidden. Upgrade PostgreSQL to version 14.25, 15.20, 16.16, 17.12, 18.7 or later, or apply any released patches, to close the permission bypass.

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 debian postgresql-18 to version 18.7-1.
  • Update bellsoft postgresql15 to version 15.20-r0.
  • Update bellsoft postgresql18 to version 18.7-r0.
  • Update postgresql to version 18.7.0.
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 < 18.7-1
Fix: upgrade to 18.7-1
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
Bitnami – postgresql >= 18.0.0, < 18.7.0
Fix: upgrade to 18.7.0
Original advisory text
PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions
Missing authorization in PostgreSQL type conversion allows a database user to invoke a cast function despite lacking EXECUTE privilege on that function, via foreign keys, to_json(), and others. A successful attack requires the attacker to search each database for access-restricted cast functions and identify confidentiality impact specific to each function implementation found. There are few or no practical examples of an access-restricted cast function or of a cast function having confidentiality impact. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
3.1 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-862Missing Authorization
Timeline
Published27 Nov 2026
Updated2 Dec 2026
First seen12 Nov 2026
Track software like this
Free during beta