CVE-2026-120149
8.8HighPublished 12 Nov 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-122
What an attacker gets
Authenticated attackers can execute arbitrary code on the PostgreSQL server by manipulating foreign batch inserts. This requires an attacker to have access to a remote foreign server that interacts with the local instance via postgres_fdw.
Root cause
A heap-based buffer overflow occurs when a foreign server reports more inserted rows than were actually supplied during a batch operation.
Affected versions
PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25.
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25 or later. If patching is delayed, disable or restrict the use of foreign data wrappers (postgres_fdw) for untrusted remote servers.
$ sudo apt-get update && sudo apt-get install --only-upgrade postgresqlAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.