JLSEC-2026-1577: Buffer Overflow
Heap buffer overflow in PostgreSQL regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pgwchar. 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
Which PostgreSQL releases contain the fix?
The issue is fixed in PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24. Earlier versions in those release lines are affected.
What access would an attacker need to exploit this issue?
The attacker must be able to author and execute a query. Exploitation uses text that does not pass encoding validation and can result in code execution as the operating system user running PostgreSQL.
How can I determine whether a deployment is affected?
Check the version of the PostgreSQL server, not just the client library. Deployments running versions before 18.6, 17.11, 16.15, 15.19, or 14.24 are affected.