SQL injection in PostgreSQL - CVE-2026-116318

 

SQL injection in PostgreSQL - CVE-2026-116318

Published: November 12, 2026


Vulnerability identifier: #VU166118
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-116318
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

PostgreSQL

How to mitigate CVE-2026-116318

Install security update from vendor's website.

PostgreSQL - update to 18.7

External References

Related Security Bulletins