CVE-2026-6637

PostgreSQL refint allows stack buffer overflow and SQL injection

State
Published
Severity
8.8 High
Published
May 14, 2026
Updated
May 15, 2026
Reserved
Apr 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HPostgreSQL

Weaknesses

  • CWE-121 Stack-based Buffer Overflow
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Affected Products

ProductVersions
PostgreSQLn/a
  • 18 to before 18.4Affected
  • 17 to before 17.10Affected
  • 16 to before 16.14Affected
  • 15 to before 15.18Affected
  • before 14.23Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.