CVE Catalog

CVE-2026-116331

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.74%

56th percentile - higher than 56% of all known CVEs

Summary

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.

Risk Assessment

An authenticated user able to create aggregates can execute arbitrary code in the context of the database's operating system account, risking server compromise. This requires object creation privileges.

Recommendation

Update PostgreSQL to version 18.7, 17.12, 16.16, 15.20, or 14.25 (or later). Consider restricting users' ability to create custom aggregates.

Other vulnerabilities in PostgreSQL

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS