repmgr OS command injection through node record values in remote SSH commands
CVE-2026-145348Published 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 commands it runs on other cluster nodes over SSH. Commands such as repmgr cluster matrix, repmgr cluster crosscheck and repmgr standby switchover build an ssh command line that includes the configuration file path (config_file) and the host name from other nodes' records in the repmgr.nodes table, and run it through the shell without quoting these values. 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 where an operator or automation runs one of these commands. 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?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| repmgrNiche | >= 4.0.0, < 5.5.2 | 5.5.2 |
What to do
Update to a fixed version: 5.5.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.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
- Prerequisites multiplied together0.063
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.063 × threat 0.850.375
- Rounded to one decimal between 0.1 and 100.4
Exploitation and evidence timeline
- 4 Dec 2026 Published
- 4 Dec 2026 Risk 0.4 (cvss fallback)
Weakness
CWE-78