Read the docs

OS command injection in repmgr through node records in SSH commands

Priority MEDIUM 42CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
Low · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.

Summary

repmgr from 4.0.0 before 5.5.2 is affected. Commands such as repmgr cluster matrix build an SSH command line from the config_file path and node host names in repmgr.nodes without quoting them, causing OS command injection (CWE-78). An attacker with the credentials of a non-superuser repmgr database user can write a crafted node record and run OS commands as the repmgr operating system user (usually postgres) on the node where one of these commands runs.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

repmgr 4.0.0 through 5.5.1 is affected by an OS command injection vulnerability (CWE-78) in the commands it runs on other cluster nodes over SSH. Commands such as repmgr cluster matrix, repmgr cluster crosscheck and repmgr standby switchover build an ssh command line that includes the configuration file path (config_file) and the host name from other nodes' records in the repmgr.nodes table, and run it through the shell without quoting these values. An attacker with the credentials of a non-superuser repmgr database user can write a crafted node record and run OS commands, as the operating system user that runs repmgr (usually postgres), on the node where an operator or automation runs one of these commands. Deployments whose repmgr database user is a superuser gain no new capability, because a superuser can already run OS commands. The issue is fixed in repmgr 5.5.2.

Why it matters now

Fix Fixed repmgr (EnterpriseDB): 5.5.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
EnterpriseDBrepmgr4.0.0 to before 5.5.25.5.2Patch availableCNA
  • repmgr VendorEnterpriseDB Affected 4.0.0 to before 5.5.2 Fixed in 5.5.2 Patch available CNA

Remediation

Upgrade to repmgr 5.5.2, which fixes the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA repmgr (EnterpriseDB) Fixed in 5.5.2

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    EnterpriseDB repmgr 5.5.2

    2 records Highest priority Priority MEDIUM 2 MEDIUM

    Other records, highest priority first

    • TI-2026-104502 OS command injection in repmgr through node record valuesPriority MEDIUM 42

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-145348

References

  • TI-2026-103947 Authentication bypass in AIDB MCP endpoint via peer auth CVSS 4.0CRITICAL 9.2
  • TI-2023-21738 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1CRITICAL 9.8
  • TI-2026-95912 Untrusted search path in Postgres Enterprise Manager allows superuser SQL CVSS 4.0CRITICAL 9.4
  • TI-2026-95911 Postgres Enterprise Manager agents can change other agents' jobs CVSS 4.0CRITICAL 9.4
  • TI-2026-95910 PEM agent role grants file read and write on the PEM server host CVSS 4.0CRITICAL 9.4
  • TI-2026-104502 OS command injection in repmgr through node record values CVSS 4.0MEDIUM 5.9
See all 44 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences