PostgreSQL min/max aggregate type confusion executes arbitrary code

State
Published
Severity
8.8 High
Published
Nov 12, 2026
Updated
Nov 13, 2026
Reserved
Oct 26, 2026

Read the record on cve.org

Description

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.

ProductVersions
PostgreSQL n/a18 to before 18.7 Affected17 to before 17.12 Affected16 to before 16.16 Affected15 to before 15.20 Affectedbefore 14.25 Affected

Weaknesses

  • CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.