CVEfocus › CVE database › CVE-2026-116303

CVE-2026-116303PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions

CVSS 3.1 LowEPSS 0.2% (higher than 9% of CVEs)Published 2026-11-12Updated 2026-11-12Assigner: PostgreSQL

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.

CWE-862

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
80Fix pending
3Under investigation
10Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10postgresql-18Fix pendingUBUNTU-CVE-2026-116303
Ubuntu 26.04postgresql-18Under investigationUBUNTU-CVE-2026-116303
Ubuntu 24.04postgresql-16Under investigationUBUNTU-CVE-2026-116303
Ubuntu 22.04postgresql-14Under investigationUBUNTU-CVE-2026-116303
Ubuntu 20.04postgresql-12Fix pendingUBUNTU-CVE-2026-116303
Ubuntu 18.04postgresql-10Fix pendingUBUNTU-CVE-2026-116303
Ubuntu 16.04postgresql-9.5Fix pendingUBUNTU-CVE-2026-116303
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2026-116303
Debian 14postgresql-18Fixed18.7-1DEBIAN-CVE-2026-116303
Debian 13postgresql-17Fixed17.12-0+deb13u1DEBIAN-CVE-2026-116303
Debian 12postgresql-15Fixed15.20-0+deb12u1DEBIAN-CVE-2026-116303
Red Hat Enterprise Linux 10postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql16Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-contribFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-serverFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-staticFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-testFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql19Not affected
Red Hat Enterprise Linux 9postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 8pg_repackFix pending
Fix deferred
Red Hat Enterprise Linux 8pgauditFix pending
Fix deferred
Red Hat Enterprise Linux 8postgres-decoderbufsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-develFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-libsFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-plpythonFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
Alpine Linux 3.24postgresql16Fixed16.16-r0ALPINE-CVE-2026-116303
Alpine Linux 3.24postgresql17Fixed17.12-r0ALPINE-CVE-2026-116303
Alpine Linux 3.24postgresql18Fixed18.7-r0ALPINE-CVE-2026-116303
Alpine Linux 3.23postgresql16Fixed16.16-r0ALPINE-CVE-2026-116303
Alpine Linux 3.23postgresql17Fixed17.12-r0ALPINE-CVE-2026-116303
Alpine Linux 3.23postgresql18Fixed18.7-r0ALPINE-CVE-2026-116303
Alpine Linux 3.22postgresql15Fixed15.20-r0ALPINE-CVE-2026-116303
Alpine Linux 3.22postgresql16Fixed16.16-r0ALPINE-CVE-2026-116303
Alpine Linux 3.22postgresql17Fixed17.12-r0ALPINE-CVE-2026-116303
Alpine Linux 3.21postgresql15Fixed15.20-r0ALPINE-CVE-2026-116303
Alpine Linux 3.21postgresql16Fixed16.16-r0ALPINE-CVE-2026-116303
Alpine Linux 3.21postgresql17Fixed17.12-r0ALPINE-CVE-2026-116303

What the vendor says

As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.