CVE-2026-6638

published 14 May 2026 · updated 13 Nov 2026

PostgreSQL REFRESH PUBLICATION allows SQL injection via table name

3.7LowCVSS 3.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 16.14, 17.10 and 18.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
postgresqlpostgresql>=16.0 <16.14, >=17.0 <17.10, >=18.0 <18.416.14, 17.10, 18.4
>=16 <16.14, >=17 <17.10, >=18 <18.416.14, 17.10, 18.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-6638 severity on Zeptric[![CVE-2026-6638](https://zeptric.io/badge/cve/CVE-2026-6638.svg)](https://zeptric.io/cve/CVE-2026-6638)