Read the docs

OS command injection in repmgr through node record values

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 builds pg_basebackup and pg_rewind command lines without escaping values from node records, which is an OS command injection flaw (CWE-78). During standby clone and rejoin with --force-rewind, values from the repmgr.nodes table and the primary's conninfo are passed unescaped to a shell. 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 being cloned or rejoined.

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 pg_basebackup and pg_rewind commands it builds. During repmgr standby clone, the replication user name (repluser) from the upstream node's record in the repmgr.nodes table is inserted into the pg_basebackup command line without escaping. During repmgr node rejoin with --force-rewind, including the rejoin step of repmgr standby switchover --force-rewind, the primary node's connection string (conninfo) is inserted into the pg_rewind command line without escaping. repmgr runs both commands through the shell. 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 being cloned or rejoined. 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 EnterpriseDB repmgr to version 5.5.2, which fixes the issue. The sources list no advisory identifier for this fix.

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-104503 OS command injection in repmgr through node records in SSH commandsPriority MEDIUM 42

Timeline

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

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-104503 OS command injection in repmgr through node records in SSH commands 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