CVE-2026-120149
Description
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 before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
How to fix
- PostgreSQL18.7, 17.12, 16.16, 15.20, 14.25 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PostgreSQL | 18 ≤ v < 18.7, 17 ≤ v < 17.12, 16 ≤ v < 16.16, 15 ≤ v < 15.20, v < 14.25 | 18.7, 17.12, 16.16, 15.20, 14.25 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.