CVE-2026-61822

pg_partman disable maintenance for all partition sets

Published Sep 18, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, run_maintenance() handles exceptions outside the loop that processes rows from part_config, so an exception for one partition set immediately terminates the loop and skips every later set. A role with partman_user access can insert or update a row that reliably fails and assign it a low maintenance_order value so it is processed before legitimate rows. Repeated maintenance ticks then abort before legitimate partition sets are maintained, causing database-wide loss of automated partition maintenance. This issue is fixed in version 5.5.0.

Analysis

AI-generated

Technical impact

The vulnerability resides in the pg_partman PostgreSQL extension, which manages partitioned tables for time or ID based partitioning. The run_maintenance function processes rows from the part_config table, but before version 5.5.0 it exits the loop when any exception occurs outside the row‑processing loop. An attacker who possesses partman_user privileges can insert or update a row that intentionally triggers an exception, assigning it a low maintenance_order so that it is processed first. Each subsequent maintenance tick then aborts before legitimate partition sets are maintained, causing a loss of automated partition maintenance throughout the database. This defect effectively degrades database availability and reliability as partitions are not periodically maintained, potentially leading to performance degradation or data inconsistency.

Affected Systems

Products impacted include the pgpartman pg_partman extension for PostgreSQL. Versions earlier than 5.5.0 are vulnerable; the issue is resolved in version 5.5.0 and later.

Risk and Exploitability

The CVSS score of 6.5 indicates a medium severity impact, with no EPSS score available so the exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires access to a role with partman_user privileges and the ability to modify the part_config table, implying a local or privileged database attack vector. Given the medium severity and the need for specific role permissions, the overall risk is moderate, but should be mitigated promptly by applying the vendor fix.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pg_partman to version 5.5.0 or later to correct the error handling in run_maintenance.
  • Review and restrict partman_user privileges to limit the ability to insert exception‑triggering rows into part_config.
  • During the transition period, consider disabling automatic maintenance or monitoring maintenance ticks to prevent repeated failures until the patch is applied.

Generated by OpenCVE AI on September 19, 2026 at 11:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pgpartman
Pgpartman pg Partman
Vendors & Products Pgpartman
Pgpartman pg Partman
Type Values Removed Values Added
Description pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, run_maintenance() handles exceptions outside the loop that processes rows from part_config, so an exception for one partition set immediately terminates the loop and skips every later set. A role with partman_user access can insert or update a row that reliably fails and assign it a low maintenance_order value so it is processed before legitimate rows. Repeated maintenance ticks then abort before legitimate partition sets are maintained, causing database-wide loss of automated partition maintenance. This issue is fixed in version 5.5.0.
Title pg_partman disable maintenance for all partition sets
Weaknesses CWE-703
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-703

    Improper Check or Handling of Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 24, 2026, 9:05 PM
Reserved
Jul 10, 2026, 8:17 PM
Status
Awaiting Analysis
Published
Sep 18, 2026, 8:17 PM
Modified
Sep 24, 2026, 9:17 PM