Home › Vulnerabilities › EnterpriseDB
EnterpriseDB repmgr 4.0.0-5.5.1: Two OS command injection flaws fixed in 5.5.2
Two medium-severity (CVSS 5.9) OS command injection flaws affect EnterpriseDB repmgr versions 4.0.0 through 5.5.1, both fixed in 5.5.2. Exploitation requires credentials for a non-superuser repmgr database user who can write crafted node records.
What to look into
- 2 vulnerabilities in EnterpriseDB repmgr: 2 medium (CVSS up to 5.9).
- None of them is known to be exploited yet.
- Start with CVE-2026-145348 (5.9 medium): 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 cluste… An attacker with administrator rights can exploit this over the network if a user views or visits something, but only under specific conditions.
- 0 of 2 can be attacked over the network without logging in.
- Kinds of flaws: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (×2).
Key points
- Two CWE-78 OS command injection flaws in repmgr, each rated MEDIUM (CVSS 5.9).
- CVE-2026-145348 affects SSH-run cluster commands; CVE-2026-145347 affects clone and rejoin commands.
- Affected range is 4.0.0 through 5.5.1; the records name 5.5.2 as the fix.
- Exploitation requires a non-superuser repmgr database user who can write node records.
- The records give no workaround and do not report known exploitation.
Two NVD records published on 2026-12-04 describe OS command injection flaws (CWE-78) in EnterpriseDB repmgr. Both are rated MEDIUM (CVSS 5.9), and both affect versions 4.0.0 through 5.5.1. The issue is fixed in repmgr 5.5.2.
Two related flaws
CVE-2026-145348 concerns commands that run on other cluster nodes over SSH, such as repmgr cluster matrix, repmgr cluster crosscheck and repmgr standby switchover. According to the record, these commands build an ssh command line that includes the configuration file path and host names taken from the repmgr.nodes table. Those values are passed through the shell without quoting.
CVE-2026-145347 concerns the pgbasebackup and pgrewind commands that repmgr builds. The replication user name from the upstream node's record is inserted unescaped into the pgbasebackup command during standby clone. The primary node's conninfo is inserted unescaped into the pgrewind command during node rejoin with --force-rewind, including the rejoin step of standby switchover --force-rewind.
Who is affected
The records say an attacker needs the credentials of a non-superuser repmgr database user who can write a crafted node record. The commands would then run as the operating system user that runs repmgr, usually postgres, on the node where an operator or automation runs the affected command. Deployments where the repmgr database user is a superuser gain no new capability, because a superuser can already run OS commands. The records do not say whether either flaw has been exploited.
What administrators should do
The records name 5.5.2 as the fixed release. They do not state a workaround or any detection method, so none is described here.
What to do
- Upgrade repmgr to 5.5.2, the version both records name as fixed.
- Identify repmgr 4.0.0 through 5.5.1 installations, especially those where cluster matrix, cluster crosscheck, standby switchover, standby clone or node rejoin run.
The 2 vulnerabilities
- CVE-2026-145348 5.9 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 switchov…
- CVE-2026-145347 5.9 repmgr 4.0.0 through 5.5.1 is affected by an OS command injection vulnerability (CWE-78) in the pgbasebackup and pgrewind commands it builds. During repmgr standby clone, the replication user name (repluser) from the upstream node's record…
Frequently asked questions
How many EnterpriseDB repmgr vulnerabilities were published on December 4, 2026?
2 vulnerabilities: 2 medium, with CVSS scores up to 5.9.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-145348 (CVSS 5.9): 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 cluste…