# CVE-2026-6637: PostgreSQL refint allows stack buffer overflow and SQL injection

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-14 · Modified: 2026-05-15
- Aliases: ALPINE-CVE-2026-6637, RHSA-2026:50119, RHSA-2026:50811, UBUNTU-CVE-2026-6637, DEBIAN-CVE-2026-6637
- Record: https://cvemate.com/vulnerability/CVE-2026-6637 · JSON: https://cvemate.com/vulnerability/CVE-2026-6637/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.37%, percentile 32.944%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 44)

- alpine postgresql15 (Alpine Linux): \< 15.18-r0
- alpine postgresql16 (Alpine Linux): \< 16.14-r0
- alpine postgresql17 (Alpine Linux): \< 17.10-r0
- alpine postgresql18 (Alpine Linux): \< 18.4-r0
- debian postgresql-15 (Debian): \< 15.18-0+deb12u1
- debian postgresql-17 (Debian): \< 17.10-0+deb13u1
- debian postgresql-18 (Debian): \< 18.4-1
- ubuntu postgresql-10 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-12 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-14 (Ubuntu): \< 14.23-0ubuntu0.22.04.1
- ubuntu postgresql-16 (Ubuntu): \< 16.14-0ubuntu0.24.04.1
- ubuntu postgresql-17 (Ubuntu): \< 17.10-0ubuntu0.25.10.1
- ubuntu postgresql-18 (Ubuntu): \< 18.4-0ubuntu0.26.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): All versions (No fix recorded)
- postgresql postgresql: \< 14.23 \| ≥ 15.0, \< 15.18 \| ≥ 16.0, \< 16.14 \| ≥ 17.0, \< 17.10 \| ≥ 18.0, \< 18.4
- redhat postgresql (Red Hat): \< 0:13.23-1.el9\_6.3 \| \< 0:13.23-1.el9\_2.3
- redhat postgresql-contrib (Red Hat): \< 0:13.23-1.el9\_6.3 \| \< 0:13.23-1.el9\_2.3
- redhat postgresql-contrib-debuginfo (Red Hat): \< 0:13.23-1.el9\_6.3 \| \< 0:13.23-1.el9\_2.3
- redhat postgresql-debuginfo (Red Hat): \< 0:13.23-1.el9\_6.3 \| \< 0:13.23-1.el9\_2.3

## References

- <https://www.postgresql.org/support/security/CVE-2026-6637/>
- <https://security.alpinelinux.org/vuln/CVE-2026-6637>
- <https://access.redhat.com/errata/RHSA-2026:50119>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2477443>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_50119.json>
- <https://access.redhat.com/security/cve/CVE-2026-6637>
- <https://www.cve.org/CVERecord?id=CVE-2026-6637>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6637>
- <https://access.redhat.com/errata/RHSA-2026:50811>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_50811.json>
- <https://ubuntu.com/security/CVE-2026-6637>
- <https://www.postgresql.org/about/news/postgresql-184-1710-1614-1518-and-1423-released-3297/>
- <https://ubuntu.com/security/notices/USN-8294-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-6637>

---

Data as of 2026-12-05T03:59:56.255Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
