Skip to content
3.7 Low

CVE-2026-6638 SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION

Description

SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION ... REFRESH PUBLICATION allows a subscriber table creator to execute arbitrary SQL with the subscription's publication-side credentials. The attack takes effect at the next REFRESH PUBLICATION. Within major versions 16, 17, and 18, minor versions before PostgreSQL 18.4, 17.10, and 16.14 are affected. Versions before PostgreSQL 16 are unaffected.

Affected products and versions

Product Affected versions Fixed in
postgresql 18 18 → < 18.4 18.4
postgresql 17 17 → < 17.10 17.10
postgresql 16 16 → < 16.14 16.14

References

Timeline

  1. Published
  2. Last modified
The 79 CVEs of postgresql →
Track this CVE