Home › CVE › Operating systems
CVE-2026-145347 — EnterpriseDB repmgr
One of 2 EnterpriseDB repmgr vulnerabilities published together by NVD: our article covers all of them.
Operating systemsDatabasesVulnerabilitiesSummary
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.
Severity breakdown
Medium · 5.9
An attacker with administrator rights can exploit this over the network if a user views or visits something, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- yes, an administrator account
- User action needed
- yes, a user must view or visit something
- Impact
- high on integrity and availability, low on confidentiality
- Impact on other systems
- none
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| EnterpriseDB repmgr | ≥ 4.0.0, < 5.5.2 | 5.5.2 |
References by type
Patches and fixed releases
Other references
Affected
- EnterpriseDB repmgr
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-145347?
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 in the repmgr.nodes table is inserted into the pgbasebackup command line without escaping. Weakness type: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78).
How severe is CVE-2026-145347?
CVE-2026-145347 has a CVSS 4.0 base score of 5.9 (medium), from the CNA. An attacker with administrator rights can exploit this over the network if a user views or visits something, but only under specific conditions.
Is CVE-2026-145347 being exploited?
Not as far as is known: CVE-2026-145347 is not in CISA's Known Exploited Vulnerabilities catalog as of December 5, 2026.
Which versions are affected by CVE-2026-145347?
EnterpriseDB repmgr ≥ 4.0.0, < 5.5.2 (fixed in 5.5.2).
How do I fix CVE-2026-145347?
Update to a fixed release: EnterpriseDB repmgr 5.5.2.
Timeline & sources
References
Related vulnerabilities & news
- AIDB MCP Endpoint Allows Unauthorized SQL Execution [CVE-2026-141488]
- Ubuntu Addresses Security Flaws in PostgreSQL JDBC Driver
- Kiro Crew Incorrect Default Permissions Vulnerability
- CVE-2026-85464 — Red Hat Quay 3
- Ubuntu Releases Pgpool-II Fixes for Credential Exposure and Authentication Bypass Flaws