CVE-2026-120149
8.8high
PostgreSQL FDW batch-insert mismatch executes arbitrary code
- Severity
- 8.8high CVSS:3.1 by PostgreSQL
- Exploit likelihood
- 0.56% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PostgreSQL
- Also known as
- BIT-POSTGRESQL-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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| PostgreSQL | from 18 before 18.7, from 17 before 17.12, from 16 before 16.16, from 15 before 15.20, before 14.25 | CVE List |
| postgresql (Bitnami) | before 14.25.0, from 15.0.0 before 15.20.0, from 16.0.0 before 16.16.0, from 17.0.0 before 17.12.0, from 18.0.0 before 18.7.0 | Bitnami Vulnerability Database |
All scores
| PostgreSQL | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-120149 changed 2026-11-14 | CVE Terms of Use |
| NVD | CVE-2026-120149 changed 2026-11-14 | Public domain |
| Bitnami Vulnerability Database | BIT-POSTGRESQL-2026-120149 changed 2026-11-27 | Apache-2.0 |