Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Operating systems

CVE-2026-145347 — EnterpriseDB repmgr

Medium · CVSS 5.9 First seen December 04, 2026

One of 2 EnterpriseDB repmgr vulnerabilities published together by NVD: our article covers all of them.

Operating systemsDatabasesVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 5.9 CVSS 4.0 base score 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.

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

Vector CVSS: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

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Affected and fixed versions

ProductAffected versionsFixed in
EnterpriseDB repmgr≥ 4.0.0, < 5.5.25.5.2

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

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