CVE-2026-6638: SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION ..
CVE-2026-6638 is a low-severity flaw (CVSS 3.7) affecting postgresql. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.7 (Low) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.2% (top 92%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2026-05-14 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-6638?
postgresql: upgrade to 16.14, 17.10, 18.4. Exact commands for each OS are on this page.
Is CVE-2026-6638 being exploited?
CVE-2026-6638 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-6638 affect?
CVE-2026-6638 affects postgresql. Severity is low (CVSS 3.7). 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
How urgent is CVE-2026-6638?
Priority 15/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2026-6471 HIGH 7.2 UPGRADE Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to d
- CVE-2026-6470 MEDIUM 4.3 UPGRADE Missing authorization in PostgreSQL DDL commands allows an object creator to achieve denial of service against
- CVE-2026-6469 LOW 3.8 UPGRADE Incorrect ownership assignment in PostgreSQL ALTER TABLE ALTER TYPE command reassigns ownership of dependent s
- CVE-2026-6464 HIGH 8.1 UPGRADE Untrusted data inclusion in PostgreSQL psql COPY may allow a server administrator to elicit execution of data
- CVE-2026-19385 HIGH 8.8 UPGRADE Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execut