Type Confusion in PostgreSQL - CVE-2026-116331
Published: November 12, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code as the operating system user running the database.
The vulnerability exists due to type confusion in PostgreSQL min/max aggregate optimization when processing user-defined aggregates with different input and result types. A remote user can create an aggregate whose SORTOP option causes the planner to treat these types as identical to execute arbitrary code as the operating system user running the database.