Type Confusion in PostgreSQL

Check todayFull system takeover over the network by a logged-in user.
8.8HIGH

CVE-2026-120142

Key Information:

Vendor

PostgreSQL Global Development Group

Status
Postgresql
CVE ID
CVE ID:
CVE-2026-120142
Vendor
CVE Published:
12 November 2026
Fixed in
Fixed in:
18.7, 17.12

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Update to a fixed version
PostgreSQL 18 to below 18.7 is vulnerable
PostgreSQL 17 to below 17.12 is vulnerable

Install the PostgreSQL release that fixes your version line, or later:

18.717.12
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach PostgreSQL. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • Its CVSS severity is high (8.8).

What is CVE-2026-120142?

CVE-2026-120142 is a type confusion vulnerability in PostgreSQL that affects anonymous RECORD types. This flaw allows an object creator to execute arbitrary code as the operating system user running the database. It is triggered when row types have dropped attributes in the same positions but with different widths or alignments. The vulnerability impacts PostgreSQL versions 17-18, specifically minor versions before PostgreSQL 18.7 and 17.12.

Potential Impact of CVE-2026-120142

  1. Arbitrary code execution: An attacker can execute arbitrary code on the operating system level, potentially compromising the database server.

References

Integer Wraparound in PostgreSQL

CVE-2026-15742
PostgreSQL Global...Postgresql8.8HIGH
View more PostgreSQL Global Development Group vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

The PostgreSQL project thanks Peter Geoghegan for reporting this problem.
.