CVE-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
PostgreSQLto a version that resolves this vulnerability.Fixed in 18.7 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 17.12 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 16.16 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 15.20 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 14.25
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An attacker needs the ability to create the relevant Perl object in PostgreSQL plperl code. Exploitation can execute code as the operating system user running the database.
Which PostgreSQL releases need remediation?
Affected releases are PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25. Upgrade to the applicable listed release or a later release in the same supported branch.
Does exploitation require interaction from another user?
No. The listed attack vector is network-based, privileges required are low, and user interaction is not required.