A SQL injection vulnerability exists in PostgreSQL's pg_dump utility in versions 18.0.0 up to but not including 18.7.0. The flaw allows an object creator to execute arbitrary SQL commands as the user restoring the dump by exploiting a child-local not-null constraint name that requires quoting on an inherited column. Versions prior to 18.0.0 are not affected. The issue is fixed in PostgreSQL 18.7.0.