# CVE-2026-61821: pg_partman authorization bypass to move child tables between schemas during retention

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-09-18T19:46:41.985Z
- Modified: 2026-09-24T21:22:19.873Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pgpartman pg_partman: < 5.5.0

## References

- <https://github.com/pgpartman/pg_partman/security/advisories/GHSA-pxp2-x8cf-rfhc>
- <https://github.com/pgpartman/pg_partman/commit/ba9405542acf24dd881845b935cab8b165854361>
- <https://github.com/pgpartman/pg_partman/releases/tag/v5.5.0>

## Sources

- CVE List: [CVE-2026-61821](https://www.cve.org/CVERecord?id=CVE-2026-61821), CVE Terms of Use, modified 2026-09-19
- NVD: [CVE-2026-61821](https://nvd.nist.gov/vuln/detail/CVE-2026-61821), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-61821 · Whole record: https://cve.day/CVE-2026-61821.json · Rebuilt by cve.day 2026-11-25T22:59:39.666Z
