BIT-postgresql-2026-116311: PostgreSQL DROP OWNED can remove restrictive row security policies from non-owned tables
Missing authorization in PostgreSQL DROP OWNED allows a role to remove itself from restrictive row level security policies, thereby reading or modifying rows that the policy was intended to deny, via queries after the DROP OWNED. 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
Who can exploit this issue?
An authenticated PostgreSQL role with the ability to run DROP OWNED can exploit it. The impact applies when that role is referenced by a restrictive row-level security policy on a table it does not own.
What access can an attacker gain after exploitation?
After removing itself from the restrictive policy, the role may be able to read or modify rows that the policy was intended to deny. The issue does not indicate an availability impact.
Are deployments without row-level security affected?
The described impact depends on restrictive row-level security policies that include the attacking role. If such policies are not in use, the stated policy-bypass condition does not apply.
Which PostgreSQL versions contain the fix?
Fixed releases are PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25. Versions earlier than those releases in their respective branches are affected.
What can be done before upgrading?
Limit untrusted roles' ability to execute DROP OWNED, particularly roles named in restrictive row-level security policies. Review those policies and the privileges of roles they reference.