NetSight
high8.1

CVE-2026-120148

Type confusion in PostgreSQL extended statistics allows an object creator to execute arbitrary code as the operating system user running the database, via a st…

Impact

Type confusion in PostgreSQL extended statistics allows an object creator to execute arbitrary code as the operating system user running the database, via a statistics expression of an anonymous RECORD type whose backend-local type identifier denotes a different row type in another session. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed.

Affected products

ProductAffected versions
PostgreSQL
from 18 before 18.7
from 17 before 17.12
from 16 before 16.16
from 15 before 15.20
before 14.25

Weakness classification

References