CVE-2026-116303PostgreSQL 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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | postgresql-18 | Fix pending | UBUNTU-CVE-2026-116303 | |
| Ubuntu 26.04 | postgresql-18 | Under investigation | UBUNTU-CVE-2026-116303 | |
| Ubuntu 24.04 | postgresql-16 | Under investigation | UBUNTU-CVE-2026-116303 | |
| Ubuntu 22.04 | postgresql-14 | Under investigation | UBUNTU-CVE-2026-116303 | |
| Ubuntu 20.04 | postgresql-12 | Fix pending | UBUNTU-CVE-2026-116303 | |
| Ubuntu 18.04 | postgresql-10 | Fix pending | UBUNTU-CVE-2026-116303 | |
| Ubuntu 16.04 | postgresql-9.5 | Fix pending | UBUNTU-CVE-2026-116303 | |
| Ubuntu 14.04 | postgresql-9.3 | Fix pending | UBUNTU-CVE-2026-116303 | |
| Debian 14 | postgresql-18 | Fixed | 18.7-1 | DEBIAN-CVE-2026-116303 |
| Debian 13 | postgresql-17 | Fixed | 17.12-0+deb13u1 | DEBIAN-CVE-2026-116303 |
| Debian 12 | postgresql-15 | Fixed | 15.20-0+deb12u1 | DEBIAN-CVE-2026-116303 |
| Red Hat Enterprise Linux 10 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-plpython3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-private-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-private-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-server-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-test-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-upgrade-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql16 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-plpython3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-private-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-private-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-server-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-test-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql18-upgrade-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql19 | Not affected | ||
| Red Hat Enterprise Linux 9 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-plpython3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-private-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-private-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-server-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-test-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | postgresql-upgrade-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pg_repack | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pgaudit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-private-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-private-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | postgresql16 | Fixed | 16.16-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.24 | postgresql17 | Fixed | 17.12-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.24 | postgresql18 | Fixed | 18.7-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.23 | postgresql16 | Fixed | 16.16-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.23 | postgresql17 | Fixed | 17.12-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.23 | postgresql18 | Fixed | 18.7-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.22 | postgresql15 | Fixed | 15.20-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.22 | postgresql16 | Fixed | 16.16-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.22 | postgresql17 | Fixed | 17.12-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.21 | postgresql15 | Fixed | 15.20-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.21 | postgresql16 | Fixed | 16.16-r0 | ALPINE-CVE-2026-116303 |
| Alpine Linux 3.21 | postgresql17 | Fixed | 17.12-r0 | ALPINE-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.
- PostgreSQL: affected: 18 to before 18.7, 17 to before 17.12, 16 to before 16.16, 15 to before 15.20, before 14.25; fixed in
18.7,17.12,16.16,15.20,14.25
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.