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

- Severity: High 8.8 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-05-14T13:00:15.223Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: BIT-POSTGRESQL-2026-6637
- Weaknesses: CWE-89, CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## Description

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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 18 before 18.4; from 17 before 17.10; from 16 before 16.14; from 15 before 15.18; before 14.23
- postgresql postgresql: before 14.23; from 15.0 before 15.18; from 16.0 before 16.14; from 17.0 before 17.10; from 18.0 before 18.4
- postgresql (Bitnami): before 14.23.0; from 15.0.0 before 15.18.0; from 16.0.0 before 16.14.0; from 17.0.0 before 17.10.0; from 18.0.0 before 18.4.0

## Every score

- PostgreSQL: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.postgresql.org/support/security/CVE-2026-6637/> (advisory, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6637> (web)

## Sources

- CVE List: [CVE-2026-6637](https://www.cve.org/CVERecord?id=CVE-2026-6637), CVE Terms of Use, modified 2026-05-15
- NVD: [CVE-2026-6637](https://nvd.nist.gov/vuln/detail/CVE-2026-6637), Public domain, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2026-6637](https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-6637), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-6637 · Whole record: https://cve.day/CVE-2026-6637.json · Rebuilt by cve.day 2026-11-25T22:59:21.706Z
