Heap-based buffer overflow in PostgreSQL - CVE-2026-120149

 

Heap-based buffer overflow in PostgreSQL - CVE-2026-120149

Published: November 12, 2026


Vulnerability identifier: #VU166092
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-120149
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code on the PostgreSQL server.

The vulnerability exists due to a heap-based buffer overflow in PostgreSQL foreign batch insert handling when processing a foreign server's reported inserted-row count. A remote user can cause a foreign server to report that it inserted more rows than the PostgreSQL server supplied to execute arbitrary code.


Affected software

PostgreSQL

How to mitigate CVE-2026-120149

Install security update from vendor's website.

PostgreSQL - addressed in versions 14.25, 15.20, 16.16, 17.12, 18.7

External References

Related Security Bulletins