UBUNTU-CVE-2026-120141: High severity ubuntu/postgresql-9.3 vulnerability
Type confusion in PostgreSQL materialized set-returning functions allows a database user to execute arbitrary code as the operating system user running the database, via returning rows having different dynamic RECORD return types. jsonpopulaterecordset() is one affected function. 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
What level of access does an attacker need?
The attacker needs an existing database user account. No user interaction is required, and the issue can be reached over the network.
What is the practical impact if exploitation succeeds?
An attacker can execute arbitrary code as the operating system user that runs the PostgreSQL database service. This can compromise confidentiality, integrity, and availability of data or resources accessible to that operating system account.
Which PostgreSQL releases need to be updated?
Affected releases are those before PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25. Update to the applicable fixed release or later.
Are all database users equally relevant to exposure?
Exposure is most relevant where database users can invoke materialized set-returning functions with rows that have differing dynamic RECORD return types. The advisory identifies json_populate_recordset() as one affected function.