Heap-based buffer overflow in PostgreSQL - CVE-2026-120149
Published: November 12, 2026
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.