CVE Feed
5.9 Medium

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…

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. 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 pgrewind 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.

Assessment

CVSS
5.9 (v4.0)
Severity
Medium
EPSS
0% chance of exploitation in the next 30 days
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
4 December 2026
Last updated
4 December 2026
Affected
EnterpriseDB · repmgr
Weakness
CWE-78
Assigner
20be33e2-bf35-4d13-8fad-18bd2f3e3659

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

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-145347