CVE-2026-120139 PostgreSQL tuple-size integer wraparound executes arbitrary code

High 8.8 Published Updated

A database user can execute code as the database OS user via oversized tuple data in PostgreSQL; 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-120139?

CVE-2026-120139 is a high-severity integer overflow 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

Integer wraparound in PostgreSQL in-memory tuple-size calculations allows a database user to execute arbitrary code as the operating system user running the database, via oversized tuple data. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Weakness: CWE-190

Which versions are affected by CVE-2026-120139?

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

How do I fix CVE-2026-120139?

Upgrade to a fixed version.

Upgrade to the fixed version. Check arithmetic on sizes and lengths before using the result. More about Integer overflow.

Is CVE-2026-120139 being exploited?

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

Sources

Also known as ALPINE-CVE-2026-120139, DEBIAN-CVE-2026-120139, ECHO-458f-5706-a26f, GHSA-8f5w-hq64-868f.

Is CVE-2026-120139 in your software?

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

Check your SBOMs for free