Skip to content
NewA calmer, faster ZeroHour

CVE-2026-116331

Type confusion RCE in PostgreSQL min/max aggregates

CVSS 3.1
8.8 high
EPSS
<1%p49
Published
·
Modified
Analyze CVE-2026-116331 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

A type-confusion flaw in PostgreSQL’s min/max aggregate optimization lets a user who can create database objects run arbitrary code as the operating-system account that runs the database. A user-defined aggregate whose SORTOP option makes the planner treat differing input and result types as the same type triggers it over the network, with no user interaction. PostgreSQL releases before 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

What to do: Upgrade PostgreSQL to 18.7, 17.12, 16.16, 15.20, or 14.25, matching the installed major version.

ProductAffectedFixed in
PostgreSQLbefore 18.7, 17.12, 16.16, 15.20, and 14.2518.7, 17.12, 16.16, 15.20, and 14.25
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

Type confusion in PostgreSQL min/max aggregate optimization allows an object creator to execute arbitrary code as the operating system user running the database, via a user-defined aggregate whose SORTOP option causes the planner to treat the aggregate's input and result as the same type when they differ. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Weakness
CWE-843
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

1 story