Skip to content
Fencer Vulns
low 3.7

CVE-2026-6638 json

PostgreSQL REFRESH PUBLICATION allows SQL injection via table name

published 2026-05-14 5 mo ago modified 2026-09-08 2 mo ago also BIT-postgresql-2026-6638 , EUVD-2026-30290 , JLSEC-2026-608

cvss
3.7
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 7%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami postgresql 16.14.0, 17.10.0, 18.4.0
  • julia LibPQ_jll 16.14.0+0
  • n/a PostgreSQL 16.14, 17.10, 18.4
  • postgresql-17 Debian 13 17.10-0+deb13u1
  • postgresql-18 Debian 14 18.4-1

debian advisories DEBIAN-CVE-2026-6638

  • postgresql-14 Ubuntu 22.04 LTS 14.23-0ubuntu0.22.04.1
  • postgresql-16 Ubuntu 24.04 LTS 16.14-0ubuntu0.24.04.1
  • postgresql-17 Ubuntu 25.10 17.10-0ubuntu0.25.10.1
  • postgresql-18 Ubuntu 26.04 LTS 18.4-0ubuntu0.26.04.1

ubuntu advisories UBUNTU-CVE-2026-6638

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • pgaudit RHEL 8 16.0-1.module+el8.10.0+20413+d8116364
  • pg_repack RHEL 8 1.5.1-1.module+el8.10.0+22551+c0330dc9
  • postgresql RHEL 8 16.14-1.module+el8.10.0+24339+d919fb58
  • postgresql-test RHEL 8 16.14-1.module+el8.10.0+24339+d919fb58
  • postgresql-pltcl RHEL 8 16.14-1.module+el8.10.0+24339+d919fb58
  • postgresql-plperl RHEL 8 16.14-1.module+el8.10.0+24339+d919fb58
  • postgresql-server RHEL 8 16.14-1.module+el8.10.0+24339+d919fb58
  • postgresql-contrib RHEL 8 16.14-1.module+el8.10.0+24339+d919fb58

red hat advisories RHSA-2026:28143RHSA-2026:27743RHSA-2026:27742RHSA-2026:27718RHSA-2026:26524RHSA-2026:26525

  • postgresql16 SLES for SAP applications 16.0, SLES 16.0 16.14-160000.1.1
  • postgresql17 SLES for SAP applications 16.0, SLES 16.0 17.10-160000.1.1
  • postgresql18 SLES for SAP applications 16.0, SLES 16.0 18.4-160000.1.1

suse advisories SUSE-SU-2026:22184-1SUSE-SU-2026:22149-1SUSE-SU-2026:22077-1

  • postgresql16 openSUSE Leap 16.0 16.14-160000.1.1
  • postgresql17 openSUSE Leap 16.0 17.10-160000.1.1
  • postgresql18 openSUSE Tumbleweed 18.4-1.1
  • postgresql16 openSUSE Tumbleweed 16.14-1.1
  • postgresql17 openSUSE Tumbleweed 17.10-1.1

opensuse advisories openSUSE-SU-2026:21104-1openSUSE-SU-2026:20970-1openSUSE-SU-2026:10828-1openSUSE-SU-2026:10808-1openSUSE-SU-2026:10809-1

  • pgaudit AlmaLinux 8 16.0-1.module_el8.10.0+3798+606ebb9f
  • pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+4199+bf03c564
  • pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+3930+ecf33554
  • pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+4125+ceaf7d1b
  • postgresql AlmaLinux 8 16.14-1.module_el8.10.0+4199+bf03c564
  • postgresql-test AlmaLinux 8 16.14-1.module_el8.10.0+4199+bf03c564
  • postgresql-pltcl AlmaLinux 8 16.14-1.module_el8.10.0+4199+bf03c564
  • postgresql-plperl AlmaLinux 8 16.14-1.module_el8.10.0+4199+bf03c564

almalinux advisories ALSA-2026:28143ALSA-2026:27742ALSA-2026:27743ALSA-2026:26203ALSA-2026:26204

  • postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 16.14-r0
  • postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.10-r0
  • postgresql18 Alpine 3.24, Alpine 3.23 18.4-r0

alpine advisories ALPINE-CVE-2026-6638

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • postgresql Azure Linux 3.0 16.14-1

azure linux advisories AZL-86825

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-6638 updated cvss 3.7

postgresql: PostgreSQL: Arbitrary SQL execution via SQL injection in logical replication

  • Red Hat Enterprise Linux AppStream (v. 8) pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pg_repack 1.5.1-1.module+el8.10.0+22551+c0330dc9, postgresql 16.14-1.module+el8.10.0+24339+d919fb58, postgresql-test 16.14-1.module+el8.10.0+24339+d919fb58, postgresql-pltcl 16.14-1.module+el8.10.0+24339+d919fb58, postgresql-plperl 16.14-1.module+el8.10.0+24339+d919fb58, +7 more
    fixed: vendor fix RHSA-2026:28143
  • Red Hat Enterprise Linux AppStream (v. 9) pgaudit 16.0-1.module+el9.8.0+24090+8f0ee565, pgaudit 18.0-1.module+el9.8.0+23739+1c42644c, postgis 3.5.3-5.module+el9.8.0+24090+8f0ee565, postgis 3.6.1-2.module+el9.8.0+23739+1c42644c, pgvector 0.6.2-2.module+el9.8.0+24090+8f0ee565, pgvector 0.8.1-1.module+el9.8.0+23739+1c42644c, +30 more
    fixed: vendor fix RHSA-2026:26203
  • Red Hat Enterprise Linux AppStream (v. 10) postgresql 16.14-1.el10_2, postgresql18 18.4-1.el10_2, postgresql16 16.14-1.el10_2, postgresql-test 16.14-1.el10_2, postgresql-pltcl 16.14-1.el10_2, postgresql18-test 18.4-1.el10_2, +12 more
    fixed: vendor fix RHSA-2026:27743
  • Red Hat Enterprise Linux AppStream E4S (v.9.4) pgaudit 16.0-1.module+el9.4.0+20427+07482b8c, pg_repack 1.4.8-1.module+el9.4.0+20427+07482b8c, postgresql 16.14-1.module+el9.4.0+24391+f6914bcd, postgresql-test 16.14-1.module+el9.4.0+24391+f6914bcd, postgresql-pltcl 16.14-1.module+el9.4.0+24391+f6914bcd, postgresql-plperl 16.14-1.module+el9.4.0+24391+f6914bcd, +7 more
    fixed: vendor fix RHSA-2026:26524
  • Red Hat Enterprise Linux AppStream EUS (v. 10.0) postgresql 16.14-1.el10_0, postgresql16 16.14-1.el10_0, postgresql-test 16.14-1.el10_0, postgresql-pltcl 16.14-1.el10_0, postgresql-plperl 16.14-1.el10_0, postgresql-server 16.14-1.el10_0, +4 more
    fixed: vendor fix RHSA-2026:27718
  • Red Hat Enterprise Linux AppStream EUS (v.9.6) pgaudit 16.0-1.module+el9.4.0+20427+07482b8c, pgvector 0.6.2-2.module+el9.6.0+22979+c3d78d52, pg_repack 1.5.1-1.module+el9.6.0+22880+6b241eec, postgresql 16.14-1.module+el9.6.0+24387+67b4079a, postgresql-test 16.14-1.module+el9.6.0+24387+67b4079a, postgresql-pltcl 16.14-1.module+el9.6.0+24387+67b4079a, +8 more
    fixed: vendor fix RHSA-2026:26525
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) postgresql-test-rpm-macros 16.14-1.el10_2, postgresql18-test-rpm-macros 18.4-1.el10_2
    fixed: vendor fix RHSA-2026:27743
  • Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) postgresql-test-rpm-macros 16.14-1.el10_0
    fixed: vendor fix RHSA-2026:27718
show 2 more
  • Red Hat Hardened Images postgresql 18.4-0.1.hum1, postgresql18 18.4-0.1.hum1, postgresql17 17.10-0.1.hum1, postgresql-test 18.4-0.1.hum1, postgresql-plperl 18.4-0.1.hum1, postgresql-server 18.4-0.1.hum1, +14 more
    fixed: vendor fix RHSA-2026:22878
  • Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, +7 more Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 more Red Hat Self-service automation portal 2 ansible-automation-platform/bootc-automation-portal-rhel9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
5 mo ago

Exploit prediction

0.18% chance of exploitation in the next 30 days, higher than 7% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 3.7 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami postgresql
>=16.0.0, <16.14.0
>=17.0.0, <17.10.0
>=18.0.0, <18.4.0
16.14.0
17.10.0
18.4.0
julia LibPQ_jll
>=16.0.0+0, <16.14.0+0
16.14.0+0

Affected products

  • n/a PostgreSQL

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.