Skip to content
CVE PROGRAM SOURCE RECORD8.8 High

CVE-2026-120149

PostgreSQL FDW batch-insert mismatch executes arbitrary code

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

n/a PostgreSQL

Default version status: unaffected

  • 18 to < 18.7affected
  • 17 to < 17.12affected
  • 16 to < 16.16affected
  • 15 to < 15.20affected
  • 0 to < 14.25affected

References