BIT-postgresql-2026-120146: PostgreSQL REASSIGN OWNED bypasses role SET and CREATEDB checks
Missing authorization in PostgreSQL REASSIGN OWNED allows a role granted INHERIT but not SET to transfer objects to the granted role. It also allows reassignment of database ownership without the CREATEDB privilege. The equivalent ALTER ... OWNER commands block this. 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
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 14.25.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 15.20.0 - 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 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
Which deployments are affected?
Bitnami PostgreSQL deployments using PostgreSQL versions earlier than 18.7, 17.12, 16.16, 15.20, or 14.25 are affected.
What access does an attacker need?
An attacker needs an existing PostgreSQL role with privileges sufficient to run REASSIGN OWNED. The flaw applies when that role has been granted INHERIT but has not been granted SET for the target role.
What could an attacker change?
The attacker can transfer objects to a granted role despite lacking the SET privilege, and can reassign database ownership without holding the CREATEDB privilege. This can result in unauthorized ownership or privilege-related changes.
How can the issue be mitigated before upgrading?
Restrict use of REASSIGN OWNED to trusted administrative roles and review roles that have INHERIT relationships with other roles. Use the equivalent ALTER ... OWNER operations where appropriate, as those commands enforce the relevant authorization checks.