CVE-2026-6638

PostgreSQL REFRESH PUBLICATION allows SQL injection via table name

HIGH
8.8
CVSS Score
Published: May 14, 2026 at 01:00 PM UTC
Updated: June 17, 2026 at 11:01 AM UTC
1 product affected across 1 vendorPostgreSQL

Using PostgreSQL by N/A?

Get instant alerts when new vulnerabilities affect PostgreSQL - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

16 ≤ v < 16.1416.0 ≤ v < 16.1417 ≤ v < 17.1017.0 ≤ v < 17.1018 ≤ v < 18.418.0 ≤ v < 18.4161718
Affected range stops below 16.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.4, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-89

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card