Skip to main content

Pg Partman

8 CVEs product

Monthly

CVE-2026-61819 Sep 18, 19:50 HIGH PATCH This Week

SQL injection in pg_partman before 5.5.0 allows an authenticated low-privileged partman_user to escalate to PostgreSQL superuser and execute operating-system commands as the PostgreSQL service account. The flaw only fires when pg_jobmon is installed, part_config.jobmon is true for the target partition set, and an affected exception handler in a pg_partman function actually runs; the injected SQL then executes with the privileges of pg_partman_bgw.role, which defaulted to a PostgreSQL superuser prior to 5.5.0. The malicious parent-table name is stored persistently in part_config, so the escalation can re-trigger on later background-worker maintenance ticks; exploitation is conditional and most dangerous in multi-tenant clusters that use jobmon with a superuser background worker, and no public exploit code was identified at time of analysis. Fixed in 5.5.0.

SQLi PostgreSQL Red Hat Pg Partman
NVD GitHub VulDB
CVSS 3.1
8.5
EPSS
0.6%
CVE-2026-61820 Sep 18, 19:49 HIGH PATCH This Week

SQL injection in pg_partman before 5.5.0 allows an authenticated partman_user who owns a template table to escape the generated ALTER TABLE ADD PRIMARY KEY statement by placing a double-quote character in a column name, causing the background worker to run attacker-supplied SQL under the worker's role. Because pre-5.5.0 deployments effectively default pg_partman_bgw.role to a PostgreSQL superuser, successful exploitation yields database-wide compromise and operating-system command execution as the PostgreSQL service account, with the crafted catalog identifier persisting and re-triggering during later child-partition creation. Exploitation is gated on the background worker actually applying the primary key to a child partition (hence AC:H) and is neutralized entirely if the worker runs as a non-superuser role; no public exploit identified at time of analysis, and the flaw is fixed in 5.5.0 (CVSS 3.1 score 8.5).

SQLi PostgreSQL Red Hat Pg Partman
NVD GitHub VulDB
CVSS 3.1
8.5
EPSS
0.6%
CVE-2026-61817 Sep 18, 19:48 HIGH PATCH This Week

SQL injection in pg_partman prior to 5.5.0 allows an authenticated PostgreSQL role holding the documented partman_user privileges to plant arbitrary SQL in the writable part_config.time_dncoder column and have it executed when routine maintenance or partition-inspection functions later interpolate that value into dynamic SQL. Because the injected statement runs with the privileges of the invoking operation, deployments whose pg_partman_bgw.role GUC is still pointed at a superuser role (the historical default before 5.5.0) can be escalated to database-wide compromise and operating-system command execution as the PostgreSQL service account, and the poisoned configuration row can re-establish elevated access on subsequent background-worker ticks. Exploitation requires write access to part_config and is most realistic in multi-tenant instances where several roles share pg_partman, and no public exploit code was identified at time of analysis; version 5.5.0 fixes the issue. The assessed CVSS is 8.5 (AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H), reflecting authenticated access and a high-complexity, scope-changing path rather than a remotely unauthenticated attack.

SQLi PostgreSQL Red Hat Pg Partman
NVD GitHub VulDB
CVSS 3.1
8.5
EPSS
0.6%
CVE-2026-61818 Sep 18, 19:47 HIGH PATCH This Week

SQL injection in pg_partman prior to 5.5.0 lets a role with partman_user access store arbitrary SQL - rather than a legitimate function name - in the part_config.time_encoder column, which undo_partition() interpolates into a dynamically executed SELECT without identifier quoting and runs with the privileges of whichever caller invokes that function. Exploitation is a two-step confused-deputy chain: an authenticated writer plants the payload, and a separate more-privileged role must later call undo_partition() on the same partition set, which is why the assessed vector is AV:N/AC:H/PR:L with impact bounded by the invoking caller rather than the attacker, and it does not carry the automatic superuser escalation of the background-worker create-partition flaw. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the issue is resolved in pg_partman 5.5.0.

SQLi PostgreSQL Red Hat Pg Partman
NVD GitHub VulDB
CVSS 3.1
8.5
EPSS
0.4%
CVE-2026-61821 Sep 18, 19:46 HIGH PATCH This Week

Unauthorized relocation of retained partition child tables in pg_partman before 5.5.0 lets an authenticated database role holding partman_user access move another tenant's child tables into a schema it does not own. The cause is that drop_partition_id() and drop_partition_time() pass part_config.retention_schema straight into ALTER TABLE SET SCHEMA, and the background worker executes the move under pg_partman_bgw.role - a PostgreSQL superuser by default before this release - so the privilege check that normally guards SET SCHEMA is never enforced. The realistic impact is bounded to multi-tenant deployments where several roles own partition sets on the same instance, no public exploit code was identified at time of analysis, and the escalation is fully neutralized by pointing pg_partman_bgw.role at a non-superuser role, which the vendor confirms can be done even before upgrading.

PostgreSQL Red Hat Pg Partman
NVD GitHub VulDB
CVSS 3.1
8.5
EPSS
0.3%
CVE-2026-61781 Sep 18, 19:44 CRITICAL PATCH Act Now

SQL injection in the pg_partman PostgreSQL extension before version 5.5.0 lets an authenticated database role that holds the documented partman_user INSERT/UPDATE privileges on the part_config table store SQL text in the writable time_encoder column instead of a legitimate function name. When the pg_partman_bgw background worker next creates a child partition for a text- or UUID-keyed set, that stored SQL is interpolated into a dynamically executed SELECT and runs with the privileges of pg_partman_bgw.role, which the pre-5.5.0 documentation defaults to a superuser such as 'postgres'; because the payload persists in the configuration row, elevated access can be re-established on subsequent maintenance ticks and can lead to database-wide compromise and operating-system command execution as the PostgreSQL service account. The issue is rated CVSS 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) and is fixed in 5.5.0; no public exploit identified at time of analysis, and exploitation requires an attacker to already possess partman_user grants plus a deployment where the background worker runs as a superuser.

SQLi PostgreSQL Red Hat Pg Partman
NVD GitHub VulDB
CVSS 3.1
9.9
EPSS
0.6%
CVE-2026-61822 Sep 18, 19:45 MEDIUM PATCH This Month

Improper exception handling in pg_partman's run_maintenance() function allows an authenticated database role holding partman_user access to permanently stall automated partition maintenance across an entire database. Because the exception handler wraps the whole row-processing loop over part_config rather than each individual partition set, a single crafted row that reliably raises an error - and that is given a low maintenance_order value so it is processed first - immediately aborts the loop and skips every legitimate partition set scheduled after it. Each subsequent maintenance tick (background worker or cron) fails the same way, so child partitions stop being created and retention stops dropping old ones, producing a database-wide availability impact; no public exploit code has been identified at time of analysis and there is no KEV listing, though EPSS and exploitation data were not available in this feed. Fixes are available in pg_partman 5.5.0.

PostgreSQL Pg Partman
NVD GitHub VulDB
CVSS 3.1
6.5
EPSS
0.4%
CVE-2021-33204 May 19, 17:15 CRITICAL PATCH Act Now

In the pg_partman (aka PG Partition Manager) extension before 4.5.1 for PostgreSQL, arbitrary code execution can be achieved via SECURITY DEFINER functions because an explicit search_path is not set. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity.

RCE PostgreSQL Pg Partman
NVD GitHub
CVSS 3.1
9.8
EPSS
2.2%
EPSS 1% CVSS 8.5
HIGH PATCH This Week

SQL injection in pg_partman before 5.5.0 allows an authenticated low-privileged partman_user to escalate to PostgreSQL superuser and execute operating-system commands as the PostgreSQL service account. The flaw only fires when pg_jobmon is installed, part_config.jobmon is true for the target partition set, and an affected exception handler in a pg_partman function actually runs; the injected SQL then executes with the privileges of pg_partman_bgw.role, which defaulted to a PostgreSQL superuser prior to 5.5.0. The malicious parent-table name is stored persistently in part_config, so the escalation can re-trigger on later background-worker maintenance ticks; exploitation is conditional and most dangerous in multi-tenant clusters that use jobmon with a superuser background worker, and no public exploit code was identified at time of analysis. Fixed in 5.5.0.

SQLi PostgreSQL Red Hat +1
NVD GitHub VulDB
EPSS 1% CVSS 8.5
HIGH PATCH This Week

SQL injection in pg_partman before 5.5.0 allows an authenticated partman_user who owns a template table to escape the generated ALTER TABLE ADD PRIMARY KEY statement by placing a double-quote character in a column name, causing the background worker to run attacker-supplied SQL under the worker's role. Because pre-5.5.0 deployments effectively default pg_partman_bgw.role to a PostgreSQL superuser, successful exploitation yields database-wide compromise and operating-system command execution as the PostgreSQL service account, with the crafted catalog identifier persisting and re-triggering during later child-partition creation. Exploitation is gated on the background worker actually applying the primary key to a child partition (hence AC:H) and is neutralized entirely if the worker runs as a non-superuser role; no public exploit identified at time of analysis, and the flaw is fixed in 5.5.0 (CVSS 3.1 score 8.5).

SQLi PostgreSQL Red Hat +1
NVD GitHub VulDB
EPSS 1% CVSS 8.5
HIGH PATCH This Week

SQL injection in pg_partman prior to 5.5.0 allows an authenticated PostgreSQL role holding the documented partman_user privileges to plant arbitrary SQL in the writable part_config.time_dncoder column and have it executed when routine maintenance or partition-inspection functions later interpolate that value into dynamic SQL. Because the injected statement runs with the privileges of the invoking operation, deployments whose pg_partman_bgw.role GUC is still pointed at a superuser role (the historical default before 5.5.0) can be escalated to database-wide compromise and operating-system command execution as the PostgreSQL service account, and the poisoned configuration row can re-establish elevated access on subsequent background-worker ticks. Exploitation requires write access to part_config and is most realistic in multi-tenant instances where several roles share pg_partman, and no public exploit code was identified at time of analysis; version 5.5.0 fixes the issue. The assessed CVSS is 8.5 (AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H), reflecting authenticated access and a high-complexity, scope-changing path rather than a remotely unauthenticated attack.

SQLi PostgreSQL Red Hat +1
NVD GitHub VulDB
EPSS 0% CVSS 8.5
HIGH PATCH This Week

SQL injection in pg_partman prior to 5.5.0 lets a role with partman_user access store arbitrary SQL - rather than a legitimate function name - in the part_config.time_encoder column, which undo_partition() interpolates into a dynamically executed SELECT without identifier quoting and runs with the privileges of whichever caller invokes that function. Exploitation is a two-step confused-deputy chain: an authenticated writer plants the payload, and a separate more-privileged role must later call undo_partition() on the same partition set, which is why the assessed vector is AV:N/AC:H/PR:L with impact bounded by the invoking caller rather than the attacker, and it does not carry the automatic superuser escalation of the background-worker create-partition flaw. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the issue is resolved in pg_partman 5.5.0.

SQLi PostgreSQL Red Hat +1
NVD GitHub VulDB
EPSS 0% CVSS 8.5
HIGH PATCH This Week

Unauthorized relocation of retained partition child tables in pg_partman before 5.5.0 lets an authenticated database role holding partman_user access move another tenant's child tables into a schema it does not own. The cause is that drop_partition_id() and drop_partition_time() pass part_config.retention_schema straight into ALTER TABLE SET SCHEMA, and the background worker executes the move under pg_partman_bgw.role - a PostgreSQL superuser by default before this release - so the privilege check that normally guards SET SCHEMA is never enforced. The realistic impact is bounded to multi-tenant deployments where several roles own partition sets on the same instance, no public exploit code was identified at time of analysis, and the escalation is fully neutralized by pointing pg_partman_bgw.role at a non-superuser role, which the vendor confirms can be done even before upgrading.

PostgreSQL Red Hat Pg Partman
NVD GitHub VulDB
EPSS 1% CVSS 9.9
CRITICAL PATCH Act Now

SQL injection in the pg_partman PostgreSQL extension before version 5.5.0 lets an authenticated database role that holds the documented partman_user INSERT/UPDATE privileges on the part_config table store SQL text in the writable time_encoder column instead of a legitimate function name. When the pg_partman_bgw background worker next creates a child partition for a text- or UUID-keyed set, that stored SQL is interpolated into a dynamically executed SELECT and runs with the privileges of pg_partman_bgw.role, which the pre-5.5.0 documentation defaults to a superuser such as 'postgres'; because the payload persists in the configuration row, elevated access can be re-established on subsequent maintenance ticks and can lead to database-wide compromise and operating-system command execution as the PostgreSQL service account. The issue is rated CVSS 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) and is fixed in 5.5.0; no public exploit identified at time of analysis, and exploitation requires an attacker to already possess partman_user grants plus a deployment where the background worker runs as a superuser.

SQLi PostgreSQL Red Hat +1
NVD GitHub VulDB
EPSS 0% CVSS 6.5
MEDIUM PATCH This Month

Improper exception handling in pg_partman's run_maintenance() function allows an authenticated database role holding partman_user access to permanently stall automated partition maintenance across an entire database. Because the exception handler wraps the whole row-processing loop over part_config rather than each individual partition set, a single crafted row that reliably raises an error - and that is given a low maintenance_order value so it is processed first - immediately aborts the loop and skips every legitimate partition set scheduled after it. Each subsequent maintenance tick (background worker or cron) fails the same way, so child partitions stop being created and retention stops dropping old ones, producing a database-wide availability impact; no public exploit code has been identified at time of analysis and there is no KEV listing, though EPSS and exploitation data were not available in this feed. Fixes are available in pg_partman 5.5.0.

PostgreSQL Pg Partman
NVD GitHub VulDB
EPSS 2% CVSS 9.8
CRITICAL PATCH Act Now

In the pg_partman (aka PG Partition Manager) extension before 4.5.1 for PostgreSQL, arbitrary code execution can be achieved via SECURITY DEFINER functions because an explicit search_path is not set. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity.

RCE PostgreSQL Pg Partman
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy