MEDIUM · CVSS 5.9 Published: 2026-12-04

CVE-2026-145347 — Technical Security Advisory & CVSS Profile

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.

Technical Metadata

IdentifierCVE-2026-145347
Base Severity / ScoreMEDIUM (5.9 / 10.0)
CVSS VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness ClassificationCWE-78
Archive CategoriesMEDIUM Advisories · 2026 Index

Operational Mitigation Guidance

Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.

Upstream References

Related Security Advisories

CVE-2026-144890 MEDIUM 4.3
CVE-2026-145348 MEDIUM 5.9
CVE-2026-144888 MEDIUM 6.3
CVE-2026-144889 MEDIUM 6.3
CVE-2026-145353 MEDIUM 5.3
CVE-2026-145354 MEDIUM 5.5
Recently updated entries: advisory/CVE-2025-3254 · advisory/CVE-2025-32434 · advisory/CVE-2025-32350