BIT-postgresql-2026-120143: PostgreSQL transition-table cursor use-after-free executes arbitrary code
Use after free in PostgreSQL trigger functions allows an object creator to execute arbitrary code as the operating system user running the database, via a cursor over a transition table. 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
Which PostgreSQL releases contain the fix?
Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, depending on the major release branch in use. Earlier versions in those branches are affected.
What does an attacker need to exploit this issue?
The attacker must be an object creator able to use a trigger function with a cursor over a transition table. Successful exploitation can execute arbitrary code as the operating system user running the database.
How can I identify affected deployments?
Check the PostgreSQL server version running in each deployment. Instances below 18.7, 17.12, 16.16, 15.20, or 14.25 are affected.