# CVE-2026-6638: PostgreSQL REFRESH PUBLICATION allows SQL injection via table name

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-14 · Modified: 2026-05-14
- Aliases: ALPINE-CVE-2026-6638, UBUNTU-CVE-2026-6638, DEBIAN-CVE-2026-6638
- Record: https://cvemate.com/vulnerability/CVE-2026-6638 · JSON: https://cvemate.com/vulnerability/CVE-2026-6638/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.18%, percentile 7.917%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine postgresql16 (Alpine Linux): \< 16.14-r0
- alpine postgresql17 (Alpine Linux): \< 17.10-r0
- alpine postgresql18 (Alpine Linux): \< 18.4-r0
- debian postgresql-17 (Debian): \< 17.10-0+deb13u1
- debian postgresql-18 (Debian): \< 18.4-1
- ubuntu postgresql-10 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-12 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-14 (Ubuntu): \< 14.23-0ubuntu0.22.04.1
- ubuntu postgresql-16 (Ubuntu): \< 16.14-0ubuntu0.24.04.1
- ubuntu postgresql-17 (Ubuntu): \< 17.10-0ubuntu0.25.10.1
- ubuntu postgresql-18 (Ubuntu): \< 18.4-0ubuntu0.26.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): All versions (No fix recorded)
- postgresql postgresql: ≥ 16.0, \< 16.14 \| ≥ 17.0, \< 17.10 \| ≥ 18.0, \< 18.4

## References

- <https://www.postgresql.org/support/security/CVE-2026-6638/>
- <https://security.alpinelinux.org/vuln/CVE-2026-6638>
- <https://ubuntu.com/security/CVE-2026-6638>
- <https://www.cve.org/CVERecord?id=CVE-2026-6638>
- <https://www.postgresql.org/about/news/postgresql-184-1710-1614-1518-and-1423-released-3297/>
- <https://ubuntu.com/security/notices/USN-8294-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-6638>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6638>

---

Data as of 2026-12-05T04:11:39.923Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
