Skip to main content
← All vulnerabilities
CVE-2026-6638

PostgreSQL REFRESH PUBLICATION allows SQL injection via table name

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 18.4, 17.10, 16.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a PostgreSQL

    From 18 · fixed in 18.4; From 17 · fixed in 17.10; From 16 · fixed in 16.14

References 1

postgresql.org