A SQL injection vulnerability exists in PostgreSQL's reindexdb utility, allowing an object creator to execute arbitrary SQL commands as the database user running reindexdb. This occurs via a crafted index name used in parallel catalog queries with the --jobs and --index options. The vulnerability affects PostgreSQL major versions 17 and 18, specifically versions prior to 17.12.0 and 18.7.0. Versions before 17 are not affected. A fix is available in PostgreSQL 17.12.0 and 18.7.0.