CVE-2026-6638 affects PostgreSQL 16, 17, and 18 (prior to 18.4, 17.10, and 16.14). During logical replication synchronization, invoking ALTER SUBSCRIPTION ... REFRESH PUBLICATION fetches relation names from the publication database. The subscriber engine assembled validation queries against the publisher without escaping relation names. A database user on the subscriber node who can create or rename tables can execute arbitrary SQL on the publisher with the publication’s high-privilege credentials.