Stack-based Buffer Overflow Affecting postgresql package, versions [14.0,14.23)[15.0,15.18)[16.0,16.14)[17.0,17.10)[18.0,18.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-POSTGRESQL-16691525
  • published14 May 2026
  • disclosed14 May 2026
  • creditNikolay Samokhvalov

Introduced: 14 May 2026

CVE-2026-6637  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade postgresql to version 14.23, 15.18, 16.14, 17.10, 18.4 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the refint process. An attacker can execute arbitrary code as the operating system user running the database or execute arbitrary SQL as the database user performing a primary key update by providing crafted input to a user-controlled column declared as a cascade primary key and facilitating user-controlled updates to that column. This is only exploitable if the application declares a user-controlled column as a cascade primary key using refint and allows user-controlled updates to that column.

CVSS Base Scores

version 4.0
version 3.1