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

- Severity: Low 3.7 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-05-14T13:00:15.848Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: BIT-POSTGRESQL-2026-6638
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 18 before 18.4; from 17 before 17.10; from 16 before 16.14
- postgresql postgresql: from 16.0 before 16.14; from 17.0 before 17.10; from 18.0 before 18.4
- postgresql (Bitnami): from 16.0.0 before 16.14.0; from 17.0.0 before 17.10.0; from 18.0.0 before 18.4.0

## Every score

- PostgreSQL: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.postgresql.org/support/security/CVE-2026-6638/> (advisory, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6638> (web)

## Sources

- CVE List: [CVE-2026-6638](https://www.cve.org/CVERecord?id=CVE-2026-6638), CVE Terms of Use, modified 2026-05-14
- NVD: [CVE-2026-6638](https://nvd.nist.gov/vuln/detail/CVE-2026-6638), Public domain, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2026-6638](https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-6638), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-6638 · Whole record: https://cve.day/CVE-2026-6638.json · Rebuilt by cve.day 2026-11-25T22:59:21.707Z
