Type Confusion in PostgreSQL
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
Install the PostgreSQL release that fixes your version line, or later:
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
- Arbitrary code execution: An attacker can execute arbitrary code on the operating system level, potentially compromising the database server.
References
More PostgreSQL Global Development Group Vulnerabilities
Integer Wraparound in PostgreSQL
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction
