CVE-2026-6638
PostgreSQL REFRESH PUBLICATION allows SQL injection via table name
3.7CVSSLOW
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.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:HAttack ComplexityHigh
PR:LPrivileges RequiredLow
UI:RUser InteractionRequired
Scope
S:UScopeUnchanged
Impact
C:LConfidentialityLow
I:LIntegrityLow
A:NAvailabilityNone
Weaknesses
Affected Products
and 6 more affected products View all →
Attack Graph
Products CVE Techniques Tactics
Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.
Exploitability
Official Patch Available
MITRE ATT&CK
1 technique Initial Access
References
https://www.postgresql.org/support/security/CVE-2026-6638/
postgresql.org
https://www.postgresql.org/support/security/CVE-2026-6638/
postgresql.org
https://www.postgresql.org/about/news/postgresql-184-1710-1614-1518-and-1423-released-3297/
postgresql.org
and 4 more references View all →
Timeline
Published
May 14, 2026
Last Updated
May 18, 2026
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2026-6638 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows