BIT-postgresql-2026-120144: PostgreSQL type-cache invalidation gap executes arbitrary code
Type confusion from incomplete PostgreSQL type-cache invalidation allows an object creator to execute arbitrary code as the operating system user running the database, via a composite type change while its cache entry is being populated. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 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 18.7.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 18.7
Event History
Frequently Asked Questions
Which deployments are affected?
Only PostgreSQL 18 installations running a minor version before 18.7 are affected. PostgreSQL versions before 18 are unaffected.
What level of access does an attacker need?
The attacker must be able to create database objects. Exploitation involves changing a composite type while its type-cache entry is being populated.
What is the impact of successful exploitation?
An attacker can execute arbitrary code as the operating system user that runs the PostgreSQL database process. This can affect confidentiality, integrity, and availability.
What should be done to remediate the issue?
Upgrade affected PostgreSQL 18 deployments to PostgreSQL 18.7 or later. The provided data does not identify an alternative mitigation if upgrading cannot be performed immediately.