BIT-postgresql-2026-116323: PostgreSQL pltcl reentrant result conversion use-after-free executes arbitrary code
Use after free in PostgreSQL pltcl allows an object creator to execute arbitrary code as the operating system user running the database, via a domain CHECK that re-enters the Tcl interpreter and frees or changes a string still used by the outer result conversion. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 14.25.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 15.20.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 16.16.0 - 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 to a fixed release to a version that resolves this vulnerability.
Fixed in 18.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 17.12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 16.16 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 15.20 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.25
Event History
Frequently Asked Questions
What level of access would an attacker need?
The attacker needs privileges to create the relevant database object and to cause a domain CHECK to re-enter the Tcl interpreter. No user interaction is required.
What is the practical impact of successful exploitation?
Successful exploitation can execute arbitrary code as the operating system user that runs the PostgreSQL database process. This can affect confidentiality, integrity, and availability of the host context available to that user.
Which updates address the issue?
Update to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, depending on the major version in use. Versions before those releases are affected.
Is a workaround available if an update cannot be applied immediately?
No workaround is provided in the available data. Prioritize limiting object-creation capabilities for untrusted database roles until the PostgreSQL update can be deployed.