---
title: "CVE-2026-61781: pg_partman - Command Injection"
description: "pg_partman prior to 5.5.0 contains a command injection caused by unquoted interpolation of part_config.time_encoder in create_partition_time(), letting roles with partman_user INSERT/UPDATE privileges execute arbitrary SQL with superuser privileges, exploit requires partman_user role privileges."
url: https://panop.io/threat-heartbeat/CVE-2026-61781/
---

# CVE-2026-61781 pg\_partman - Command Injection

pg\_partman prior to 5.5.0 contains a command injection caused by unquoted interpolation of part\_config.time\_encoder in create\_partition\_time(), letting roles with partman\_user INSERT/UPDATE privileges execute arbitrary SQL with superuser privileges, exploit requires partman\_user role privileges.

CVSS base score 9.9 /10

Critical

CISA KEV

Not listed

Public exploit

None known

Authentication

Required

EPSS

0.80% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-61781)

## Details

Type

Command Injection

Impact

Remote Code Execution, Privilege Escalation

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Published

18 September 2026

Updated

15 October 2026

Weakness

[CWE-89](https://cwe.mitre.org/data/definitions/89.html)

## Vendor fix

Update to version 5.5.0 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-61781](https://nvd.nist.gov/vuln/detail/CVE-2026-61781)
- [https://github.com/pgpartman/pg\_partman/commit/ba9405542acf24dd881845b935cab8b165854361](https://github.com/pgpartman/pg_partman/commit/ba9405542acf24dd881845b935cab8b165854361)
- [https://github.com/pgpartman/pg\_partman/releases/tag/v5.5.0](https://github.com/pgpartman/pg_partman/releases/tag/v5.5.0)
- [https://github.com/pgpartman/pg\_partman/security/advisories/GHSA-742w-3j7c-qwvp](https://github.com/pgpartman/pg_partman/security/advisories/GHSA-742w-3j7c-qwvp)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
