Vulnerability Details CVE-2026-6638
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.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.0
EPSS Ranking 7.2%
CVSS Severity
CVSS v3 Score 3.7
Products affected by CVE-2026-6638
-
cpe:2.3:a:postgresql:postgresql:16.0
-
cpe:2.3:a:postgresql:postgresql:16.1
-
cpe:2.3:a:postgresql:postgresql:16.10
-
cpe:2.3:a:postgresql:postgresql:16.11
-
cpe:2.3:a:postgresql:postgresql:16.12
-
cpe:2.3:a:postgresql:postgresql:16.13
-
cpe:2.3:a:postgresql:postgresql:16.2
-
cpe:2.3:a:postgresql:postgresql:16.3
-
cpe:2.3:a:postgresql:postgresql:16.4
-
cpe:2.3:a:postgresql:postgresql:16.5
-
cpe:2.3:a:postgresql:postgresql:16.6
-
cpe:2.3:a:postgresql:postgresql:16.7
-
cpe:2.3:a:postgresql:postgresql:16.8
-
cpe:2.3:a:postgresql:postgresql:16.9
-
cpe:2.3:a:postgresql:postgresql:17.0
-
cpe:2.3:a:postgresql:postgresql:17.1
-
cpe:2.3:a:postgresql:postgresql:17.2
-
cpe:2.3:a:postgresql:postgresql:17.3
-
cpe:2.3:a:postgresql:postgresql:17.4
-
cpe:2.3:a:postgresql:postgresql:17.5
-
cpe:2.3:a:postgresql:postgresql:17.6
-
cpe:2.3:a:postgresql:postgresql:17.7
-
cpe:2.3:a:postgresql:postgresql:17.8
-
cpe:2.3:a:postgresql:postgresql:17.9
-
cpe:2.3:a:postgresql:postgresql:18.0
-
cpe:2.3:a:postgresql:postgresql:18.1
-
cpe:2.3:a:postgresql:postgresql:18.2
-
cpe:2.3:a:postgresql:postgresql:18.3