SQL injection in PostgreSQL - CVE-2026-116318
Published: November 12, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary SQL with the privileges of the user restoring a database dump.
The vulnerability exists due to improper quoting of not-null constraint names in PostgreSQL pg_dump when generating SQL for an inherited column with a child-local not-null constraint. A remote user can create an object with a specially crafted constraint name requiring quoting to inject SQL that executes when the resulting dump is restored.