Bug 2537861 (CVE-2026-61821) - CVE-2026-61821 pg_partman: authorization bypass to move child tables between schemas during retention
Summary: CVE-2026-61821 pg_partman: authorization bypass to move child tables between ...
Keywords:
Status: NEW
Alias: CVE-2026-61821
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2540729
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-22 15:48 UTC by OSIDB Bzimport
Modified: 2026-09-24 19:09 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-22 15:48:41 UTC
pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, drop_partition_id() and drop_partition_time() use part_config.retention_schema as the target for ALTER TABLE SET SCHEMA and accept any nonempty schema name. A role with partman_user access can select a target schema where the role lacks the normal CREATE privilege, and the background worker performs the relocation with pg_partman_bgw.role privileges, which default to PostgreSQL superuser, bypassing the authorization check that a normal ALTER TABLE SET SCHEMA operation would enforce. This permits unauthorized relocation of retained child tables between schemas. This issue is fixed in version 5.5.0.


Note You need to log in before you can comment on or make changes to this bug.