Heap-Based Buffer Overflow Vulnerability in PostgreSQL by The PostgreSQL Global Development Group
CVE-2026-120149
8.8HIGH
Key Information:
- Status
- Vendor
- CVE Published:
- 12 November 2026
What is CVE-2026-120149?
A heap-based buffer overflow has been identified in PostgreSQL's foreign batch insert functionality. This vulnerability can be exploited by foreign servers that report an inflated number of inserted rows. If the remote table's rule expands an INSERT into multiple rows, it may lead to the execution of arbitrary code, compromising the security of the PostgreSQL database. The issue affects several versions of PostgreSQL, specifically before 18.7, 17.12, 16.16, 15.20, and 14.25, which necessitates immediate attention from users to mitigate potential risks.
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 Sumedh Pathak and Sven Klemm for reporting this problem.
