CVE-2026-18447: PostgreSQL output parameter type confusion executes arbitrary code
PostgreSQL output parameter type confusion executes arbitrary code
Other sources
Type confusion in PostgreSQL SQL-language functions allows an object creator to execute arbitrary code as the operating system user running the database, via an output parameter of type "any". Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/postgresql15to a version that resolves this vulnerability.Fixed in 15.20-r0 - Upgrade
Upgrade
alpine/postgresql16to a version that resolves this vulnerability.Fixed in 16.16-r0 - Upgrade
Upgrade
alpine/postgresql17to a version that resolves this vulnerability.Fixed in 17.12-r0 - Upgrade
Upgrade
alpine/postgresql18to a version that resolves this vulnerability.Fixed in 18.7-r0 - Upgrade
Upgrade
debian/postgresql-15to a version that resolves this vulnerability.Fixed in 15.20-0+deb12u1 - Upgrade
Upgrade
debian/postgresql-17to a version that resolves this vulnerability.Fixed in 17.12-0+deb13u1 - Upgrade
Upgrade
debian/postgresql-18to a version that resolves this vulnerability.Fixed in 18.7-1 - Upgrade
Upgrade
azurelinux/postgresqlto a version that resolves this vulnerability.Fixed in 16.16-1 - Upgrade
Upgrade
azurelinux/postgresql17to a version that resolves this vulnerability.Fixed in 0:17.12-6.azl4 - Upgrade
Upgrade
azurelinux/postgresql16to a version that resolves this vulnerability.Fixed in 0:16.16-6.azl4 - 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
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 privileges to create a relevant database object. The vulnerable behavior is in SQL-language functions that use an output parameter of type "any".
What level of access could successful exploitation provide?
Successful exploitation can execute arbitrary code as the operating system user running the PostgreSQL database. This can affect the confidentiality, integrity, and availability of the database host.
Which PostgreSQL versions need to be updated?
Affected versions are PostgreSQL releases before 18.7, 17.12, 16.16, 15.20, and 14.25. Update to the applicable listed release or a later version.