pg_partman 是一个 PostgreSQL 扩展,用于按时间或 ID 管理分区表。在 5.5.0 版本之前, 函数手动用双引号包裹从 获取的主键列名,但未对嵌入的双引号字符进行转义处理。拥有模板表的 可以创建一个特制的列名,从而在后台工作进程(background worker)将主键应用到子分区时,突破生成的 语句中的标识符边界。由此生成的 SQL 语句将以 的权限执行,而该角色默认具有 PostgreSQL 超级用户权限,从而导致整个数据库被破坏,并允许以 PostgreSQL 服务账户身份执行操作系统
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| pgpartman | pg_partman | < 5.5.0 |
affected |
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.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| pgpartman | pg_partman | < 5.5.0 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC| CVE-2026-61781 | 9.9 CRITICAL | pg_partman has privilege escalation through SQL injection in create_partition_time() |
| 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-61819 | 8.5 HIGH | pg_partman privilege escalation via SQL injection in when using pg_jobmon and encountering |
| 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 |
No comments yet