Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
— PostgreSQL 18 – < 18.4, 17 – < 17.10, 16 – < 16.14 18.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 postgresql-18 18.4-1 —
Debian 13 postgresql-17 17.10-0+deb13u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS postgresql-18 18.4-0ubuntu0.26.04.1 —
Ubuntu 25.10 postgresql-17 17.10-0ubuntu0.25.10.1 —
Ubuntu 24.04 LTS postgresql-16 16.14-0ubuntu0.24.04.1 —
Ubuntu 22.04 LTS postgresql-14 14.23-0ubuntu0.22.04.1 —
Ubuntu 20.04 LTS postgresql-12 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS postgresql-10 No fix yet —
Ubuntu Pro 16.04 LTS postgresql-9.5 No fix yet —
Ubuntu Pro 14.04 LTS postgresql-9.3 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 postgresql +15 16.14-1.el10_2 RHSA-2026:27743
RHEL 10 postgresql18 +13 18.4-1.el10_2 RHSA-2026:27742
RHEL 9 pg_repack 1.5.1-1.module+el9.8.0+24090+8f0ee565 RHSA-2026:26204, RHSA-2026:26203
RHEL 9 pgaudit 16.0-1.module+el9.8.0+24090+8f0ee565 RHSA-2026:26204, RHSA-2026:26203
RHEL 9 pgvector 0.6.2-2.module+el9.8.0+24090+8f0ee565 RHSA-2026:26204, RHSA-2026:26203
RHEL 9 postgis +4 3.5.3-5.module+el9.8.0+24090+8f0ee565 RHSA-2026:26204, RHSA-2026:26203
RHEL 9 postgres-decoderbufs 2.4.0-1.Final.module+el9.8.0+24090+8f0ee565 RHSA-2026:26204, RHSA-2026:26203
RHEL 9 postgresql +14 16.14-1.module+el9.8.0+24360+ff98e86a RHSA-2026:26204, RHSA-2026:26203
RHEL 8 pg_repack 1.5.1-1.module+el8.10.0+22551+c0330dc9 RHSA-2026:28143
RHEL 8 pgaudit 16.0-1.module+el8.10.0+20413+d8116364 RHSA-2026:28143
RHEL 8 postgres-decoderbufs 2.4.0-1.Final.module+el8.10.0+20413+d8116364 RHSA-2026:28143
RHEL 8 postgresql +14 16.14-1.module+el8.10.0+24339+d919fb58 RHSA-2026:28143
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS postgresql +15 16.14-1.el10_0 RHSA-2026:27718
RHEL 9.6 EUS pg_repack 1.5.1-1.module+el9.6.0+22880+6b241eec RHSA-2026:26525
RHEL 9.6 EUS pgaudit 16.0-1.module+el9.4.0+20427+07482b8c RHSA-2026:26525
RHEL 9.6 EUS pgvector 0.6.2-2.module+el9.6.0+22979+c3d78d52 RHSA-2026:26525
RHEL 9.6 EUS postgres-decoderbufs 2.4.0-1.Final.module+el9.4.0+20427+07482b8c RHSA-2026:26525
RHEL 9.6 EUS postgresql +14 16.14-1.module+el9.6.0+24387+67b4079a RHSA-2026:26525
RHEL 9.4 E4S pg_repack 1.4.8-1.module+el9.4.0+20427+07482b8c RHSA-2026:26524
RHEL 9.4 E4S pgaudit 16.0-1.module+el9.4.0+20427+07482b8c RHSA-2026:26524
RHEL 9.4 E4S postgres-decoderbufs 2.4.0-1.Final.module+el9.4.0+20427+07482b8c RHSA-2026:26524
RHEL 9.4 E4S postgresql +14 16.14-1.module+el9.4.0+24391+f6914bcd RHSA-2026:26524
Red Hat Hardened Images 1 postgresql +14 18.4-0.1.hum1 RHSA-2026:22878
Red Hat Hardened Images 1 postgresql17 +14 17.10-0.1.hum1 RHSA-2026:21182

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 postgresql +14 16.14-1.el10_2 ALSA-2026:27743
AlmaLinux 10 postgresql18 +13 18.4-1.el10_2 ALSA-2026:27742
AlmaLinux 9 pg_repack 1.5.1-1.module_el9.6.0+146+c54fdeca ALSA-2026:26204, ALSA-2026:26203
AlmaLinux 9 pgaudit 16.0-1.module_el9.4.0+66+eb9878bc ALSA-2026:26204, ALSA-2026:26203
AlmaLinux 9 pgvector 0.6.2-2.module_el9.6.0+167+4e561146 ALSA-2026:26204, ALSA-2026:26203
AlmaLinux 9 postgis +4 3.5.3-5.module_el9.8.0+236+2d3cbd4c ALSA-2026:26204, ALSA-2026:26203
AlmaLinux 9 postgres-decoderbufs 2.4.0-1.Final.module_el9.4.0+66+eb9878bc ALSA-2026:26204, ALSA-2026:26203
AlmaLinux 9 postgresql +14 16.14-1.module_el9.8.0+266+1e661e97 ALSA-2026:26204, ALSA-2026:26203
AlmaLinux 8 pg_repack 1.5.1-1.module_el8.10.0+3930+ecf33554 ALSA-2026:28143
AlmaLinux 8 pgaudit 16.0-1.module_el8.10.0+3798+606ebb9f ALSA-2026:28143
AlmaLinux 8 postgres-decoderbufs 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f ALSA-2026:28143
AlmaLinux 8 postgresql +14 16.14-1.module_el8.10.0+4199+bf03c564 ALSA-2026:28143
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 postgresql16 16.14-160000.1.1 SUSE-SU-2026:22184-1
SLES for SAP 16.0 postgresql17 17.10-160000.1.1 SUSE-SU-2026:22149-1
SLES for SAP 16.0 postgresql18 18.4-160000.1.1 SUSE-SU-2026:22077-1
SLES 16.0 postgresql16 16.14-160000.1.1 SUSE-SU-2026:22184-1
SLES 16.0 postgresql17 17.10-160000.1.1 SUSE-SU-2026:22149-1
SLES 16.0 postgresql18 18.4-160000.1.1 SUSE-SU-2026:22077-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed postgresql16 16.14-1.1 openSUSE-SU-2026:10808-1
openSUSE Tumbleweed postgresql17 17.10-1.1 openSUSE-SU-2026:10809-1
openSUSE Tumbleweed postgresql18 18.4-1.1 openSUSE-SU-2026:10828-1
openSUSE Leap 16.0 postgresql16 16.14-160000.1.1 openSUSE-SU-2026:21104-1
openSUSE Leap 16.0 postgresql17 17.10-160000.1.1 openSUSE-SU-2026:20970-1
ReleasePackageFixed inAdvisory
Alpine v3.24 postgresql16 16.14-r0 —
Alpine v3.24 postgresql17 17.10-r0 —
Alpine v3.24 postgresql18 18.4-r0 —
Alpine v3.23 postgresql16 16.14-r0 —
Alpine v3.23 postgresql17 17.10-r0 —
Alpine v3.23 postgresql18 18.4-r0 —
Alpine v3.22 postgresql16 16.14-r0 —
Alpine v3.22 postgresql17 17.10-r0 —
Alpine v3.21 postgresql16 16.14-r0 —
Alpine v3.21 postgresql17 17.10-r0 —
Alpine v3.20 postgresql16 16.14-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 postgresql16 +15 16.14-1.amzn2023.0.1 ALAS2023-2026-1767
Amazon Linux 2023 postgresql17 +15 17.10-1.amzn2023.0.1 ALAS2023-2026-1766
Amazon Linux 2023 postgresql18 +15 18.4-1.amzn2023.0.1 ALAS2023-2026-1780

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 postgresql 16.14-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 postgresql18 +13 18.4-1.0.1.el10_2 ELSA-2026-27742

Advisories 29

References