CVE-2026-120148 · Runtime
NO FIX YET · SEE WHAT TO DO
PostgreSQL extended statistics mishandle an anonymous RECORD type in a statistics expression, a type confusion bug. A user who can create database objects can execute arbitrary code as the operating system user running the database.
first public Nov 12, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Servers running PostgreSQL before 18.7, 17.12, 16.16, 15.20 or 14.25 are affected. The attack needs a database account that can create objects, so systems where only trusted administrators hold that right are lower risk. Managed database services are handled by their provider.
Not affected if managed-hosting, trusted-object-creators-only
Who cares database, postgresql, self-hosted
SELECT version(); in psql and compare against the fixed versions listed below.18.717.1216.1615.2014.25Type 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.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.