Skip to content
Fencer Intel
high 8.8

CVE-2026-6637 json

PostgreSQL refint allows stack buffer overflow and SQL injection

published 5mo ago modified 2mo ago also BIT-postgresql-2026-6637 , EUVD-2026-30291 , JLSEC-2026-607

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

Summary

Stack buffer overflow in PostgreSQL module "refint" allows an unprivileged database user to execute arbitrary code as the operating system user running the database. A distinct attack is possible if the application declares a user-controlled column as a "refint" cascade primary key and facilitates user-controlled updates to that column. In that case, a SQL injection allows a primary key update value provider to execute arbitrary SQL as the database user performing the primary key update. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

Patch / fix

  • bitnami postgresql 14.23.0, 15.18.0, 16.14.0, 17.10.0, 18.4.0
  • julia LibPQ_jll 16.14.0+0
  • n/a PostgreSQL 14.23, 15.18, 16.14, 17.10, 18.4
  • postgresql-15 Debian 12 15.18-0+deb12u1
  • postgresql-17 Debian 13 17.10-0+deb13u1
  • postgresql-18 Debian 14 18.4-1

debian advisories DEBIAN-CVE-2026-6637

  • 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-6637

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 1.4.0-7.module+el8.10.0+22214+9beb89d6
  • pg_repack RHEL 8 1.4.6-3.module+el8.9.0+19330+c97ddbdf
  • postgresql RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
  • postgresql-test RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
  • postgresql-pltcl RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
  • postgresql-plperl RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
  • postgresql-server RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
  • postgresql-contrib RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed

red hat advisories RHSA-2026:50811RHSA-2026:50119RHSA-2026:49521RHSA-2026:42555RHSA-2026:34363RHSA-2026:34362

  • postgresql16 SLES for SAP applications 16.0, SLES 16.0 16.14-160000.1.1
  • postgresql15 SLES for SAP applications 16.0, SLES 16.0 15.18-160000.1.1
  • postgresql14 SLES for SAP applications 16.0, SLES 16.0 14.23-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:22183-1SUSE-SU-2026:22177-1SUSE-SU-2026:22149-1SUSE-SU-2026:22077-1

  • postgresql16 openSUSE Leap 16.0 16.14-160000.1.1
  • postgresql15 openSUSE Leap 16.0 15.18-160000.1.1
  • postgresql14 openSUSE Leap 16.0 14.23-160000.1.1
  • postgresql17 openSUSE Leap 16.0 17.10-160000.1.1
  • postgresql18 openSUSE Tumbleweed 18.4-1.1
  • postgresql14 openSUSE Tumbleweed 14.23-1.1
  • postgresql15 openSUSE Tumbleweed 15.18-1.1
  • postgresql16 openSUSE Tumbleweed 16.14-1.1

opensuse advisories openSUSE-SU-2026:21104-1openSUSE-SU-2026:21103-1openSUSE-SU-2026:21102-1openSUSE-SU-2026:20970-1openSUSE-SU-2026:10828-1openSUSE-SU-2026:10806-1

  • pgaudit AlmaLinux 8 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1
  • pgaudit AlmaLinux 8 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1
  • pg_repack AlmaLinux 8 1.4.6-3.module_el8.9.0+3704+f1f917ce
  • postgres-decoderbufs AlmaLinux 8 0.10.0-2.module_el8.9.0+3704+f1f917ce
  • 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

almalinux advisories ALSA-2026:28999ALSA-2026:28143ALSA-2026:28208ALSA-2026:27741ALSA-2026:27742ALSA-2026:27743

  • postgresql Rocky Linux 9 13.23-3.el9_8

rocky linux advisories RLSA-2026:27741

  • postgresql15 Alpine 3.22, Alpine 3.21, Alpine 3.20 15.18-r0
  • 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-6637

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-86837

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

Is CVE-2026-6637 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-6637 updated cvss 8.8

postgresql: PostgreSQL: Arbitrary code execution vulnerability in 'refint' module

  • Red Hat Self-service automation portal 2 ansible-automation-platform/bootc-automation-portal-rhel9
    affected: no fix available
  • Red Hat CodeReady Linux Builder EUS (v.9.6) postgresql-test 13.23-1.el9_6.2, postgresql-test 13.23-1.el9_6.3, postgresql-test-rpm-macros 13.23-1.el9_6.2, postgresql-test-rpm-macros 13.23-1.el9_6.3
    fixed: vendor fix RHSA-2026:29212
  • Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.5.0-1.module+el8.9.0+20664+9c30cf7f, pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pgaudit 1.4.0-7.module+el8.10.0+22214+9beb89d6, pg_repack 1.4.6-3.module+el8.9.0+19330+c97ddbdf, pg_repack 1.4.6-3.module+el8.9.0+20664+9c30cf7f, +44 more
    fixed: vendor fix RHSA-2026:28999
  • Red Hat Enterprise Linux AppStream (v. 9) postgresql 13.23-3.el9_8, postgresql-pltcl 13.23-3.el9_8, postgresql-plperl 13.23-3.el9_8, postgresql-server 13.23-3.el9_8, postgresql-contrib 13.23-3.el9_8, postgresql-upgrade 13.23-3.el9_8, +51 more
    fixed: vendor fix RHSA-2026:28037
  • 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 AUS (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24442+74e4dc28.4, postgresql 13.23-1.module+el8.4.0+24476+2b5ce087.2, postgresql-test 12.22-1.module+el8.4.0+24442+74e4dc28.4, postgresql-test 13.23-1.module+el8.4.0+24476+2b5ce087.2, +16 more
    fixed: vendor fix RHSA-2026:34362
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+24433+21669af6.4, postgresql 13.23-1.module+el8.6.0+24447+7305b672.3, +18 more
    fixed: vendor fix RHSA-2026:29815
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, +31 more
    fixed: vendor fix RHSA-2026:34043
show 14 more
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) postgresql 13.23-1.el9_2.2, postgresql 13.23-1.el9_2.3, postgresql-pltcl 13.23-1.el9_2.2, postgresql-pltcl 13.23-1.el9_2.3, postgresql-plperl 13.23-1.el9_2.2, postgresql-plperl 13.23-1.el9_2.3, +23 more
    fixed: vendor fix RHSA-2026:33497
  • Red Hat Enterprise Linux AppStream E4S (v.9.4) postgresql 13.23-1.el9_4.2, postgresql-pltcl 13.23-1.el9_4.2, postgresql-plperl 13.23-1.el9_4.2, postgresql-server 13.23-1.el9_4.2, postgresql-contrib 13.23-1.el9_4.2, postgresql-upgrade 13.23-1.el9_4.2, +28 more
    fixed: vendor fix RHSA-2026:33441
  • 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) postgresql 13.23-1.el9_6.2, postgresql 13.23-1.el9_6.3, postgresql-pltcl 13.23-1.el9_6.2, postgresql-pltcl 13.23-1.el9_6.3, postgresql-plperl 13.23-1.el9_6.2, postgresql-plperl 13.23-1.el9_6.3, +37 more
    fixed: vendor fix RHSA-2026:32983
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24442+74e4dc28.4, postgresql 13.23-1.module+el8.4.0+24476+2b5ce087.2, postgresql-test 12.22-1.module+el8.4.0+24442+74e4dc28.4, postgresql-test 13.23-1.module+el8.4.0+24476+2b5ce087.2, +16 more
    fixed: vendor fix RHSA-2026:34362
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+24433+21669af6.4, postgresql 13.23-1.module+el8.6.0+24447+7305b672.3, +18 more
    fixed: vendor fix RHSA-2026:29815
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, +31 more
    fixed: vendor fix RHSA-2026:34043
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) postgresql-test 13.23-3.el9_8, postgresql-test-rpm-macros 13.23-3.el9_8
    fixed: vendor fix RHSA-2026:27741
  • 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
  • Red Hat Enterprise Linux Server (v. 7 ELS) postgresql 9.2.24-9.el7_9.6, postgresql-libs 9.2.24-9.el7_9.6, postgresql-test 9.2.24-9.el7_9.6, postgresql-pltcl 9.2.24-9.el7_9.6, postgresql-plperl 9.2.24-9.el7_9.6, postgresql-server 9.2.24-9.el7_9.6, +2 more Red Hat Enterprise Linux Server Optional (v. 7 ELS) postgresql-upgrade 9.2.24-9.el7_9.6
    fixed: vendor fix RHSA-2026:49521
  • 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 Update Infrastructure 5 rhui5/rhua-rhel9 1784795076, rhui5/rhua-tp-rhel9 1787241260
    fixed: vendor fix RHSA-2026:44481
  • Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Update Infrastructure 5 rhui5/cds-rhel9 1784794778, rhui5/cds-tp-rhel9 1787241206, rhui5/haproxy-rhel9 1784795112, rhui5/installer-rhel9 1784794289, rhui5/installer-tp-rhel9 1787135742, rhui5/cds-kubernetes-rhel9 1784794818, +1 more
    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
total
Assessed
5mo ago

Exploit prediction

0.37% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 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
<14.23.0
>=15.0.0, <15.18.0
>=16.0.0, <16.14.0
>=17.0.0, <17.10.0
>=18.0.0, <18.4.0
14.23.0
15.18.0
16.14.0
17.10.0
18.4.0
julia LibPQ_jll
<16.14.0+0
16.14.0+0

Affected products

  • n/a PostgreSQL

Classification

Weakness
  • CWE-121 Stack-based Buffer Overflow
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Technology feeds

References

Sources

Fencer Intel 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.