Heap-based Buffer Overflow
CVE-2026-120149
Summary
Heap-based buffer overflow in PostgreSQL foreign batch inserts allows a foreign server to execute arbitrary code, via reporting that it inserted more rows than the server supplied. postgres_fdw can legitimately encounter this when a rule on the remote table expands an INSERT into additional rows. Versions prior to PostgreSQL 14.25, 15.x prior to 15.20, 16.x prior to 16.16, 17.x prior to 17.12 and 18.x prior to 18.7 are affected.
- LOW
- NETWORK
- HIGH
- UNCHANGED
- NONE
- LOW
- HIGH
- HIGH
CWE-122 - Heap-based Buffer Overflow
A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
Advisory Timeline
- Published