---
title: "CVE-2026-61820: pg_partman - Command Injection"
description: "pg_partman < 5.5.0 contains a command injection caused by improper escaping of double quotes in primary-key column names in inherit_template_properties(), letting a partman_user with template table ownership execute OS commands with superuser privileges, exploit requires crafted column names."
url: https://panop.io/threat-heartbeat/CVE-2026-61820/
---

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

pg\_partman < 5.5.0 contains a command injection caused by improper escaping of double quotes in primary-key column names in inherit\_template\_properties(), letting a partman\_user with template table ownership execute OS commands with superuser privileges, exploit requires crafted column names.

CVSS base score 8.5 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Required

EPSS

0.73% chance of exploitation in 30 days

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

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:N/AC:H/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-61820](https://nvd.nist.gov/vuln/detail/CVE-2026-61820)
- [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-xqxh-6hh3-974m](https://github.com/pgpartman/pg_partman/security/advisories/GHSA-xqxh-6hh3-974m)
- [https://github.com/pgpartman/pg\_partman/commit/ba9405542acf24dd881845b935cab8b165854361](https://github.com/pgpartman/pg_partman/commit/ba9405542acf24dd881845b935cab8b165854361)

[← 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)
