JLSEC-2026-1580: Buffer Overflow
Heap buffer overflow in PostgreSQL tochar(timestamptz) allows the party choosing the timezone to execute arbitrary code as the operating system user running the database, via a long POSIX timezone abbreviation. 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 vulnerability?
An attacker must be able to choose the timezone used by PostgreSQL to_char(timestamptz) and supply a long POSIX timezone abbreviation. The issue can be exploited remotely and does not require user interaction, but it requires low-level privileges.
What is the impact of successful exploitation?
Successful exploitation can allow arbitrary code execution as the operating system user that runs the PostgreSQL database. This can compromise confidentiality, integrity, and availability of the database host.
Which PostgreSQL versions need to be updated?
Affected versions are those earlier than PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24. Update to the applicable listed release or a later version.