JLSEC-2026-1587: SQL Injection
SQL injection in PostgreSQL EXTRACT() deparse allows an object owner to execute arbitrary SQL as a superuser via a hostile object definition. Attacks affect expression deparse consumers broadly, including pgdump, psql commands like \sf, and any similar usage in non-core tools. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 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.6 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 17.11 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 16.15 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 15.19 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 14.24
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs to control a hostile object definition and be an object owner. Successful exploitation occurs when a superuser uses an affected expression-deparse consumer, such as pg_dump, psql \sf, or a similar non-core tool.
Which deployments and workflows are exposed?
The issue affects PostgreSQL versions before 18.6, 17.11, 16.15, 15.19, and 14.24. Exposure is broad wherever affected expression deparsing is performed, including pg_dump and psql commands such as \sf.
What is the impact if exploitation succeeds?
A hostile object definition can cause arbitrary SQL to be executed with superuser privileges. This can compromise confidentiality, integrity, and availability.