CVE-2026-122043
repmgr OS command injection in event notifications
An attacker with a low-privilege database login can run OS commands as the service user on other cluster nodes.
Texto original en inglés · Ver en español
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
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-122043 divulgada · CVSS 6 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
EnterpriseDB's repmgr has an OS command injection flaw in its event notification commands, which insert node names and connection strings into shell commands without proper escaping. An attacker on the network with the credentials of a non-superuser repmgr database user can write a crafted node record and run OS commands as the user running repmgr, usually postgres, on other cluster nodes that process events using these placeholders.
Descripción original del registro (EDB)
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.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
repmgr |
Corregida | 5.5.1 | — | — |
5.5.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://www.enterprisedb.com/docs/security/advisories/cve2026122043/https://github.com/EnterpriseDB/repmgr/releases/tag/v5.5.1Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
