BIT-postgresql-2026-116328: PostgreSQL generation memory context integer wraparound executes arbitrary code
Integer wraparound in PostgreSQL generation memory contexts allows a database user to execute arbitrary code as the operating system user running the database, via freeing an allocation larger than 1 GB and causing its block to be reused for smaller chunks whose back-pointer offset cannot represent that position. Within major versions 16-18, minor versions before PostgreSQL 18.7, 17.12, and 16.16 are affected. Versions before PostgreSQL 16 are unaffected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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
Event History
Frequently Asked Questions
Which deployments are affected?
PostgreSQL major versions 16, 17, and 18 are affected when running versions earlier than 16.16, 17.12, or 18.7, respectively. PostgreSQL versions before 16 are unaffected.
What access does an attacker need to exploit this issue?
An attacker needs database-user privileges. The vulnerability can then allow that user to execute arbitrary code as the operating system user that runs the PostgreSQL server.
What is the immediate remediation?
Upgrade to PostgreSQL 16.16, 17.12, 18.7, or a later release in the applicable major-version branch.