CVE-2026-61819

published 18 Sep 2026 · updated 18 Sep 2026

pg_partman privilege escalation via SQL injection in when using pg_jobmon and encountering exception

8.5HighCVSS 8.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, when pg_jobmon is installed and part_config.jobmon is true, exception handlers in multiple pg_partman functions place p_parent_table verbatim inside a SQL string literal used to call pg_jobmon.add_job(). A partman_user can create a parent-table name containing a single quote that terminates the literal and injects SQL when an affected exception path runs. If pg_partman_bgw reaches that path, the injected SQL executes with pg_partman_bgw.role privileges, which default to PostgreSQL superuser, permitting database-wide compromise and operating-system command execution as the PostgreSQL service account. The persistent part_config row can trigger the escalation again on later maintenance ticks. This issue is fixed in version 5.5.0.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pgpartman<5.5.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-61819 severity on Zeptric[![CVE-2026-61819](https://zeptric.io/badge/cve/CVE-2026-61819.svg)](https://zeptric.io/cve/CVE-2026-61819)