Skip to content

repmgr

repmgr OS command injection through node record values in pg_basebackup and pg_rewind commands

CVE-2026-145347Published 4 Dec 2026, 21:17 UTC

Real-world risk

0.4/ 10Low

Routine

If the vulnerable configuration applies to you: 0.8

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.9

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from EDB)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
repmgrNiche>= 4.0.0, < 5.5.25.5.2

What to do

Update to a fixed version: 5.5.2.

Why this score

FactorValueEvidence×
ImpactMajor data tamperingWrites or changes important data without gaining executionFrom the CVSS vector0.70
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededHighAdmin or equivalentFrom the CVSS vector0.20
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 1.2% chance of exploitation in 30 days (percentile 69), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together0.063
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.7 × prerequisites 0.063 × threat 0.850.375
  4. Rounded to one decimal between 0.1 and 100.4

How the score works

Exploitation and evidence timeline

  1. 4 Dec 2026 Published
  2. 4 Dec 2026 Risk 0.4 (cvss fallback)

Weakness

CWE-78

References

Get alerts for repmgr

Free email or text alerts when a vulnerability in repmgr reaches risk 8 or higher. Nothing else.