CVE-2026-120142 PostgreSQL dropped-column type confusion executes arbitrary code

High 8.8 Published Updated

An object creator can execute code as the database OS user via type confusion in anonymous RECORD types; PostgreSQL administrators should care.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
No
Fix
Available

What is CVE-2026-120142?

CVE-2026-120142 is a high-severity memory corruption vulnerability in PostgreSQL, published on 12 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Type confusion in PostgreSQL anonymous RECORD types allows an object creator to execute arbitrary code as the operating system user running the database, via row types having dropped attributes in the same positions but with different widths or alignments. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.

Weakness: CWE-843

Which versions are affected by CVE-2026-120142?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-120142?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-120142 being exploited?

There is no known exploitation of CVE-2026-120142 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2026-120142, DEBIAN-CVE-2026-120142, ECHO-7607-bcf9-b8b4, GHSA-43vc-qgr9-gj8f.

Is CVE-2026-120142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free