REDHAT-BUG-2572559: Use After Free
Use after free in the PostgreSQL dblink extension allows an object creator to execute arbitrary code as the operating system user running the database, via type conversion code that re-enters dblink and closes a connection whose results an outer dblink call is reading. 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 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
Who can exploit this issue?
An attacker must be able to create an object in the database and arrange for type conversion code to re-enter dblink while an outer dblink call is reading connection results.
What is the impact of successful exploitation?
Successful exploitation can allow arbitrary code execution as the operating system user that runs the PostgreSQL database.
Which PostgreSQL versions need remediation?
PostgreSQL releases before 18.7, 17.12, 16.16, 15.20, and 14.25 are affected when the dblink extension is in use.