CVE-2026-6638 PostgreSQL REFRESH PUBLICATION allows SQL injection via table name
HighCVSS 8.8
EPSS 0.18%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
28 packages: 23 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/postgresql:16-8100020260530205218.489197e6(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/postgresql:16-9040020260612132455.rhel9(Red Hat rhel_e4s 9.4) | All versions | No fix listed | No fix yet |
| redhat/postgresql:16-9060020260612084605.rhel9(Red Hat rhel_eus 9.6) | All versions | No fix listed | No fix yet |
| redhat/postgresql:16-9080020260605131007.rhel9(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/postgresql:18-9080020260605125734.rhel9(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| alpine/postgresql16(Alpine v3.20) | < 16.14-r0 | 16.14-r0 | Fixed |
| alpine/postgresql16(Alpine v3.21) | < 16.14-r0 | 16.14-r0 | Fixed |
| alpine/postgresql16(Alpine v3.22) | < 16.14-r0 | 16.14-r0 | Fixed |
| alpine/postgresql16(Alpine v3.23) | < 16.14-r0 | 16.14-r0 | Fixed |
| alpine/postgresql16(Alpine v3.24) | < 16.14-r0 | 16.14-r0 | Fixed |
| alpine/postgresql17(Alpine v3.21) | < 17.10-r0 | 17.10-r0 | Fixed |
| alpine/postgresql17(Alpine v3.22) | < 17.10-r0 | 17.10-r0 | Fixed |
| alpine/postgresql17(Alpine v3.23) | < 17.10-r0 | 17.10-r0 | Fixed |
| alpine/postgresql17(Alpine v3.24) | < 17.10-r0 | 17.10-r0 | Fixed |
| alpine/postgresql18(Alpine v3.23) | < 18.4-r0 | 18.4-r0 | Fixed |
| alpine/postgresql18(Alpine v3.24) | < 18.4-r0 | 18.4-r0 | Fixed |
| azure linux postgresql(Azure Linux 3.0) | < 16.14-1 | 16.14-1 | Fixed |
| debian/postgresql-17(Debian 13) | < 17.10-0+deb13u1; = 17.5-1; = 17.6-0+deb13u1; = 17.6-1 +3 more | 17.10-0+deb13u1 | Fixed |
| debian/postgresql-18(Debian 14) | < 18.4-1; = 18.0-1; = 18.1-1; = 18.1-2 +16 more | 18.4-1 | Fixed |
| postgresql | >= 16.0, < 16.14; >= 17.0, < 17.10; >= 18.0, < 18.4 | 16.14, 17.10, 18.4 | Fixed |
| redhat/postgresql16(Red Hat enterprise_linux 10.2) | < 16.14-1.el10_2 | 16.14-1.el10_2 | Fixed |
| redhat/postgresql16(Red Hat enterprise_linux_eus 10.0) | < 16.14-1.el10_0 | 16.14-1.el10_0 | Fixed |
| redhat/postgresql17-main(Red Hat hummingbird 1) | < 17.10-0.1.hum1 | 17.10-0.1.hum1 | Fixed |
| redhat/postgresql18(Red Hat enterprise_linux 10.2) | < 18.4-1.el10_2 | 18.4-1.el10_2 | Fixed |
| redhat/postgresql18-main(Red Hat hummingbird 1) | < 18.4-0.1.hum1 | 18.4-0.1.hum1 | Fixed |
| ubuntu/postgresql-14(Ubuntu 22.04) | < 14.23-0ubuntu0.22.04.1 | 14.23-0ubuntu0.22.04.1 | Fixed |
| ubuntu/postgresql-16(Ubuntu 24.04) | < 16.14-0ubuntu0.24.04.1 | 16.14-0ubuntu0.24.04.1 | Fixed |
| ubuntu/postgresql-18(Ubuntu 26.04) | < 18.4-0ubuntu0.26.04.1 | 18.4-0ubuntu0.26.04.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/postgresql18(Red Hat:enterprise_linux:10.2) | < 18.4-1.el10_2 | 18.4-1.el10_2 |
| redhat/postgresql16(Red Hat:enterprise_linux:10.2) | < 16.14-1.el10_2 | 16.14-1.el10_2 |
| redhat/postgresql16(Red Hat:enterprise_linux_eus:10.0) | < 16.14-1.el10_0 | 16.14-1.el10_0 |
| redhat/postgresql:16-8100020260530205218.489197e6(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/postgresql:16-9080020260605131007.rhel9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/postgresql:18-9080020260605125734.rhel9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/postgresql:16-9040020260612132455.rhel9(Red Hat:rhel_e4s:9.4) | All versions | No fix listed |
| redhat/postgresql:16-9060020260612084605.rhel9(Red Hat:rhel_eus:9.6) | All versions | No fix listed |
| redhat/postgresql17-main(Red Hat:hummingbird:1) | < 17.10-0.1.hum1 | 17.10-0.1.hum1 |
| redhat/postgresql18-main(Red Hat:hummingbird:1) | < 18.4-0.1.hum1 | 18.4-0.1.hum1 |
| ubuntu/postgresql-14(Ubuntu:22.04) | < 14.23-0ubuntu0.22.04.1 | 14.23-0ubuntu0.22.04.1 |
| alpine/postgresql16(Alpine:v3.20) | < 16.14-r0 | 16.14-r0 |
| alpine/postgresql16(Alpine:v3.21) | < 16.14-r0 | 16.14-r0 |
| alpine/postgresql16(Alpine:v3.22) | < 16.14-r0 | 16.14-r0 |
| alpine/postgresql16(Alpine:v3.23) | < 16.14-r0 | 16.14-r0 |
| alpine/postgresql16(Alpine:v3.24) | < 16.14-r0 | 16.14-r0 |
| alpine/postgresql17(Alpine:v3.21) | < 17.10-r0 | 17.10-r0 |
| alpine/postgresql17(Alpine:v3.22) | < 17.10-r0 | 17.10-r0 |
| alpine/postgresql17(Alpine:v3.23) | < 17.10-r0 | 17.10-r0 |
| alpine/postgresql17(Alpine:v3.24) | < 17.10-r0 | 17.10-r0 |
| alpine/postgresql18(Alpine:v3.23) | < 18.4-r0 | 18.4-r0 |
| alpine/postgresql18(Alpine:v3.24) | < 18.4-r0 | 18.4-r0 |
| ubuntu/postgresql-16(Ubuntu:24.04) | < 16.14-0ubuntu0.24.04.1 | 16.14-0ubuntu0.24.04.1 |
| ubuntu/postgresql-18(Ubuntu:26.04) | < 18.4-0ubuntu0.26.04.1 | 18.4-0ubuntu0.26.04.1 |
| postgresql | >= 16.0, < 16.14 | 16.14 |
Show 30 more
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql | >= 17.0, < 17.10 | 17.10 |
| postgresql | >= 18.0, < 18.4 | 18.4 |
| debian/postgresql-17(Debian:13) | < 17.10-0+deb13u1 | 17.10-0+deb13u1 |
| debian/postgresql-17(Debian:13) | = 17.5-1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.6-0+deb13u1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.6-1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.7-0+deb13u1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.8-0+deb13u1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.9-0+deb13u1 | No fix listed |
| debian/postgresql-18(Debian:14) | < 18.4-1 | 18.4-1 |
| debian/postgresql-18(Debian:14) | = 18.0-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.1-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.1-2 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.2-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.3-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1+20250612-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1+20250624-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1+20250701-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta2-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta3-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~rc1-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~rc1-2 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~rc1-3 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250318+g4078da6c478-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250331-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250405-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250421-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250502-1 | No fix listed |
| azure linux postgresql(Azure Linux:3.0) | < 16.14-1 | 16.14-1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- www.postgresql.org patch vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:27742 patch vendor-advisory
- RHSA-2026:27743 patch vendor-advisory
- RHSA-2026:27718 patch vendor-advisory
- RHSA-2026:28143 patch vendor-advisory
- RHSA-2026:26203 patch vendor-advisory
- RHSA-2026:26204 patch vendor-advisory
- RHSA-2026:26524 patch vendor-advisory
- RHSA-2026:26525 patch vendor-advisory
- RHSA-2026:21182 patch vendor-advisory
- RHSA-2026:22878 patch vendor-advisory
- Red Hat Bugzilla 2477446 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-6638 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8294-1 vendor-advisory
- security.alpinelinux.org vendor-advisory