{"id":"CVE-2026-116303","state":"PUBLISHED","title":"PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions","description":"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.","publishedAt":"2026-11-12T14:15:01.762Z","updatedAt":"2026-11-12T21:50:17.774Z","severity":{"score":3.1,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"PostgreSQL"},"assigner":"PostgreSQL","products":["n/a PostgreSQL"],"affected":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"version":"18","status":"affected","lessThan":"18.7","versionType":"rpm"},{"version":"17","status":"affected","lessThan":"17.12","versionType":"rpm"},{"version":"16","status":"affected","lessThan":"16.16","versionType":"rpm"},{"version":"15","status":"affected","lessThan":"15.20","versionType":"rpm"},{"version":"0","status":"affected","lessThan":"14.25","versionType":"rpm"}]}],"references":["https://www.postgresql.org/support/security/CVE-2026-116303/"],"weaknesses":["CWE-862"],"ingestedAt":"2026-11-12T22:08:06.104Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/116xxx/CVE-2026-116303.json","commit":"ae89a92ce4c2d69012d3e9db5efe8ac5becb202f","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-116303","state":"PUBLISHED","datePublished":"2026-11-12T14:15:01.762Z","dateUpdated":"2026-11-12T21:50:17.774Z","assignerShortName":"PostgreSQL","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateReserved":"2026-10-26T03:52:44.051Z"},"containers":{"cna":{"title":"PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"version":"18","status":"affected","lessThan":"18.7","versionType":"rpm"},{"version":"17","status":"affected","lessThan":"17.12","versionType":"rpm"},{"version":"16","status":"affected","lessThan":"16.16","versionType":"rpm"},{"version":"15","status":"affected","lessThan":"15.20","versionType":"rpm"},{"version":"0","status":"affected","lessThan":"14.25","versionType":"rpm"}]}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-116303/"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","baseScore":3.1,"baseSeverity":"LOW"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-862","lang":"en","type":"CWE","description":"Missing Authorization"}]}],"providerMetadata":{"shortName":"PostgreSQL","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateUpdated":"2026-11-12T14:15:01.762Z"},"x_postgresql":{"component":"core server"},"configurations":[{"lang":"en","value":"a cast function has revoked public access (no examples known), and calling it has confidentiality impact (independently, no examples known)"}],"credits":[{"lang":"en","value":"The PostgreSQL project thanks Filip Janus and Anthropic OSS program for reporting this problem."}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-12T21:31:55.090439Z","id":"CVE-2026-116303","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-12T21:50:17.774Z"}}]}}}