Heap-Based Buffer Overflow in PostgreSQL Database Software
CVE-2026-116317
8.8HIGH
What is CVE-2026-116317?
A heap-based buffer overflow vulnerability has been identified in the ts_rank_cd() function of PostgreSQL. This vulnerability can be exploited by a database user to execute arbitrary code under the privileges of the operating system user running the database. The issue arises when an invalid tsvector contains duplicate positions, leading to potential system compromise. Users of affected versions are advised to update to the latest releases to mitigate this risk.
Affected Version(s)
PostgreSQL 18 < 18.7
PostgreSQL 17 < 17.12
PostgreSQL 16 < 16.16
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 Anthropic OSS program for reporting this problem.