PostgreSQL code execution in PL/pgSQL record-field assignment
PostgreSQL
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| PostgreSQL |
| No fix yet |
Original description
Type confusion in PostgreSQL plpgsql record-field assignment allows an object creator to execute arbitrary code as the operating system user running the database, via a reentrant domain CHECK that changes a RECORD variable's row type while a value is being cast. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.