Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-61819— pg_partman privilege escalation via SQL injection in when using pg_jobmon and encountering exception

Quick assessment

Affected
pgpartman pg_partman
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pg_partman 是一个用于管理按时间或 ID 划分的分区表的 PostgreSQL 扩展。在 5.5.0 版本之前,如果安装了 pg_jobmon 并且 为 ,pg_partman 中多个函数的异常处理逻辑会将 参数原样嵌入到一个 SQL 字符串字面量中,用于调用 。攻击者若拥有 权限,可以创建一个包含单引号的父表名,从而终止该字面量并注入 SQL 语句;当触发受影响的异常处理路径时,注入的 SQL 就会被执行。如果 (pg_partman 后台工作进程)到达该代码路径,注入的 SQL 将以 的特权执行,而该

CVSS 8.5 · High

Affected Version Matrix 1

VendorProduct Version RangeStatus
pgpartman pg_partman < 5.5.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-61819

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
pg_partman privilege escalation via SQL injection in when using pg_jobmon and encountering exception
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pgpartman pg_partman < 5.5.0 -

II. Public POCs for CVE-2026-61819

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-61819

登录查看更多情报信息。

Other References for CVE-2026-61819 (2)

Same Patch Batch · pgpartman · 2026-09-18 · 7 CVEs total

CVE-2026-61781 9.9 CRITICAL pg_partman has privilege escalation through SQL injection in create_partition_time()
CVE-2026-61820 8.5 HIGH pg_partman privilege escalation via SQL injection when inheriting template properties
CVE-2026-61817 8.5 HIGH pg_partman privilege escalation via SQL injection in several functions via time decoder
CVE-2026-61818 8.5 HIGH pg_partman SQL injection in undo partition time encoder
CVE-2026-61821 8.5 HIGH pg_partman authorization bypass to move child tables between schemas during retention
CVE-2026-61822 6.5 MEDIUM pg_partman disable maintenance for all partition sets

IV. Related Vulnerabilities

V. Comments for CVE-2026-61819

No comments yet


Leave a comment