Descrizione
rsync before 3.5.0 contains multiple command and argument injection vulnerabilities that allow attackers to execute arbitrary commands by supplying malicious input through several code paths, including the RSYNC_CONNECT_PROG environment variable, daemon hooks, the rsync-ssl wrapper, and remote-shell command newline injection. Attackers can inject shell metacharacters or newline characters into unsanitized user-supplied values such as hostnames and hostspecs to execute arbitrary commands under the privileges of the rsync process or the invoking user.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1.
Versioni da aggiornare
- Samba Rsync: vulnerabili le versioni precedenti alla
3.5.0→ aggiornare alla3.5.0o successiva.
Patch e advisory
- Advisory del vendor: github.com/RsyncProject/rsync/security/advisori…
- Note di rilascio: github.com/RsyncProject/rsync/releases/tag/v3.5.0
- Advisory di terze parti: www.vulncheck.com/advisories/rsync-command-injection-v…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Limitare l'accesso all'interfaccia vulnerabile (VPN o allowlist IP), disabilitare le funzionalità non necessarie e monitorare processi anomali avviati dal servizio.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Samba | Rsync | < 3.5.0 | 3.5.0 |
Riferimenti
- Advisory del vendorhttps://github.com/RsyncProject/rsync/security/advisories/GHSA-5hcf-7xxm-rmqq
- Note di rilasciohttps://github.com/RsyncProject/rsync/releases/tag/v3.5.0
- Advisory di terze partihttps://www.vulncheck.com/advisories/rsync-command-injection-via-multiple-code-paths