BIT-postgresql-2026-116320: PostgreSQL plperl array and hash conversion use-after-free executes arbitrary code
Use after free in PostgreSQL plperl allows an object creator to execute arbitrary code as the operating system user running the database, via dropping the final reference to a Perl array or hash while PostgreSQL is converting that object. 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 need to be updated?
Affected releases are PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25. Update to the corresponding listed release or a later release in the same supported branch.
What access does an attacker need to exploit this issue?
The attacker needs privileges sufficient to create the relevant object in PostgreSQL. Exploitation occurs when the final reference to a Perl array or hash is dropped during PostgreSQL conversion of that object.
What level of compromise is possible?
Successful exploitation can execute arbitrary code as the operating system user that runs the PostgreSQL database. This can impact confidentiality, integrity, and availability of the database host.