CVE-2026-116318

PostgreSQL pg_dump not-null constraint name allows SQL injection

High published · updated

8.8
CVSS score out of 10 · NVD (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

Description

SQL injection in PostgreSQL pg_dump allows an object creator to execute arbitrary SQL as the user restoring the dump, via an inherited column having a child-local not-null constraint whose name requires quoting. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
postgresql n/a 18 → <18.718.7 CVE.org

References