CVE-2026-120145: Arbitrary Code Execution in PostgreSQL Logical Replication
CVE-2026-120145 is a missing-authorization vulnerability in PostgreSQL logical replication. A compromised publisher can name a system catalog as a replication target, causing replication to write to subscriber system catalogs and enabling arbitrary code execution on the subscriber. Code executes as the operating system user running the subscription. Only subscriptions owned by a PostgreSQL superuser are vulnerable. Affected releases are PostgreSQL 18.x before 18.7, 17.x before 17.12, 16.x before 16.16, 15.x before 15.20, and 14.x before 14.25.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the subscriber under the operating system account running the subscription, potentially allowing access to sensitive database data, unauthorized modification of database contents and system catalogs, and disruption of database services. The resulting access is bounded by that operating system account's permissions; operating system root privileges are not established.
Mitigation
If you can’t patch tonight, do this now.
No vendor-specified workaround is documented. Subscriptions not owned by a PostgreSQL superuser are not vulnerable to this issue.
Remediation
Patch, then assume compromise.
Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, or a later maintenance release within the applicable branch. The fix rejects system catalogs as logical replication targets. Distribution-managed installations should apply the corresponding vendor security update. PostgreSQL 14.25 is the final release of that branch, so PostgreSQL 14 deployments should also plan migration to a supported major version.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-120145 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2026-120145 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-120145?
- As of Nov 17, 2026, Mallory has found no public exploit for CVE-2026-120145.
- Is there a patch for CVE-2026-120145?
- Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, or a later maintenance release within the applicable branch. The fix rejects system catalogs as logical replication targets.
- How severe is CVE-2026-120145?
- CVE-2026-120145 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.54% (46th percentile) as of Nov 17, 2026.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.