BIT-postgresql-2026-120142: PostgreSQL dropped-column type confusion executes arbitrary code
Type confusion in PostgreSQL anonymous RECORD types allows an object creator to execute arbitrary code as the operating system user running the database, via row types having dropped attributes in the same positions but with different widths or alignments. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 17.12.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 18.7.0 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 18.7 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 17.12
Event History
Frequently Asked Questions
Which deployments are affected?
PostgreSQL 17 and 18 deployments are affected if they run versions earlier than 17.12 or 18.7, respectively. PostgreSQL versions before 17 are unaffected.
What access does an attacker need?
An attacker needs privileges to create database objects. Exploitation involves anonymous RECORD types and row types with dropped attributes in matching positions that have different widths or alignments.
What is the impact of successful exploitation?
Successful exploitation can allow arbitrary code execution as the operating system user that runs the PostgreSQL database process. This can affect confidentiality, integrity, and availability.
What should be done if an affected version is in use?
Upgrade PostgreSQL 17 to 17.12 or later, or PostgreSQL 18 to 18.7 or later. The provided data does not identify an alternative mitigation for systems that cannot be patched immediately.