# CVE-2026-122043: repmgr 4.0.0 through 5.5.0 is affected by an OS command injection vulnerability (CWE-78) in event notifications.

- Severity: Medium 6.0 (CVSS:4.0, scored by EDB) `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Published: 2026-11-11T16:21:53.597Z
- Modified: 2026-11-17T15:17:33.337Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EDB

## Description

repmgr 4.0.0 through 5.5.0 is affected by an OS command injection vulnerability (CWE-78) in event notifications. When event_notification_command is configured, repmgr substitutes the %a (node name), %c (connection string) and %d (details) placeholders into the command and runs it through the shell. %a and %c are inserted without escaping, and %d escapes only double quotes, so shell command substitution still works inside the quoting the documentation recommends. The node name and connection string come from node records in the repmgr.nodes table. 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 or repmgrd (usually postgres), on other cluster nodes that process an event using these placeholders. The %a placeholder of failover_validation_command has the same flaw. Deployments whose repmgr database user is a superuser gain no new capability, because a superuser can already run OS commands, and deployments that do not use these placeholders are not affected. The issue is fixed in repmgr 5.5.1. After upgrading, operators must remove any quotes they placed around these placeholders, because a placeholder left inside double quotes is still open to command injection.

(As written by CVE List.)

## Affected

- EnterpriseDB repmgr: from 4.0.0 before 5.5.1

## References

- <https://www.enterprisedb.com/docs/security/advisories/cve2026122043/>
- <https://github.com/EnterpriseDB/repmgr/releases/tag/v5.5.1>

## Sources

- CVE List: [CVE-2026-122043](https://www.cve.org/CVERecord?id=CVE-2026-122043), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-122043](https://nvd.nist.gov/vuln/detail/CVE-2026-122043), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-122043 · Whole record: https://cve.day/CVE-2026-122043.json · Rebuilt by cve.day 2026-11-25T22:59:50.386Z
