Skip to main content

CVE-2026-61821: CWE-862: Missing Authorization in pgpartman pg_partman

0
High
VulnerabilityCVE-2026-61821cvecve-2026-61821cwe-862
Published: 09/18/2026 (09/18/2026, 19:46:41 UTC)
Source: CVE Database V5
Vendor/Project: pgpartman
Product: pg_partman

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.

CVSS v3.1

Score 8.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Affected software

pgpartman

pg_partman

Affected versions
<5.5.0
GitHub Actionsmore threats →ai
pgpartman/pg_partman
pkg:github/pgpartman/pg_partman
Affected versions
<5.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 20:17:20 UTC

Technical Analysis

The vulnerability CVE-2026-61821 affects pg_partman, a PostgreSQL extension for managing partitioned tables. Before version 5.5.0, the functions drop_partition_id() and drop_partition_time() use the part_config.retention_schema as the target schema for ALTER TABLE SET SCHEMA operations. These functions accept any nonempty schema name, and a role with partman_user access can specify a schema where it lacks CREATE privileges. The background worker then performs the schema relocation using pg_partman_bgw.role privileges, which default to PostgreSQL superuser. This bypasses the usual authorization checks, enabling unauthorized relocation of retained child tables between schemas. The vulnerability is addressed in version 5.5.0.

Potential Impact

An attacker with partman_user role privileges can relocate retained child tables to arbitrary schemas without having the required CREATE privileges on those schemas. This bypass of authorization checks can lead to unauthorized data manipulation or access control violations. The CVSS 3.1 score is 8.5 (high), reflecting network attack vector, low attack complexity, required privileges, no user interaction, scope change, high confidentiality impact, low integrity impact, and no availability impact.

Mitigation Recommendations

Upgrade pg_partman to version 5.5.0 or later, where this authorization bypass vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed fixed in 5.5.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-10T20:17:57.992Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6aad98c355bf5e2cf57b8897

Added to database: 09/18/2026, 20:02:11 UTC

Last enriched: 09/18/2026, 20:17:20 UTC

Last updated: 09/19/2026, 01:09:18 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses