CVE-2026-6638

HIGH CVSS 3.1: 8.8 EPSS 0.18%
Updated Jun 17, 2026
PostgreSQL
Parameter Value
CVSS 8.8 (HIGH)
Affected Versions 16.0 — 18.4
Fixed In 16.14
Type CWE-89 (SQL Injection)
Vendor PostgreSQL
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 3

Configuration From (including) Up to (excluding)
Postgresql Postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
16.0 16.14
Postgresql Postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
17.0 17.10
Postgresql Postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
18.0 18.4