Heap Buffer Overflow in PostgreSQL Affects Query Execution
CVE-2026-14676

8.8HIGH

Key Information:

Vendor

PostgreSQL

Vendor
CVE Published:
13 August 2026

What is CVE-2026-14676?

A heap buffer overflow vulnerability in PostgreSQL's pg_stat_statements enables malicious query authors to execute arbitrary code with the permissions of the database's operating system user. This issue is exploitable through specially crafted queries containing array constants, impacting PostgreSQL versions 18.0 through 18.4. Users running versions prior to PostgreSQL 18 are not affected. It is critical for users to upgrade to the latest version to mitigate potential threats.

Affected Version(s)

PostgreSQL 18 < 18.5

References

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

The PostgreSQL project thanks Sajeeb Lohani (with TrendAI Zero Day Initiative), Yuelin Wang, and David Korczynski (Claude and Ada Logics) for reporting this problem.
.