REDHAT-BUG-2572575: Medium severity PostgreSQL postgresql vulnerability
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 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 PostgreSQL releases need to be updated?
Affected releases are PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25. Updating to the applicable listed release or later addresses the issue.
What privileges does an attacker need to exploit the object reassignment issue?
A role needs INHERIT granted for another role but must not have SET for that role. Under those conditions, it can use REASSIGN OWNED to transfer objects to the granted role despite lacking SET.
What additional ownership change is possible?
REASSIGN OWNED can be used to reassign database ownership without the CREATEDB privilege. The equivalent ALTER ... OWNER commands do not permit these unauthorized ownership changes.