REDHAT-BUG-2515378: High severity rsync rsync vulnerability
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 RSYNCCONNECTPROG 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.
Affected Software
Event History
Frequently Asked Questions
What attacker access or input control is needed to exploit these issues?
An attacker needs to supply malicious input to an affected rsync code path. The described inputs include the RSYNC_CONNECT_PROG environment variable, daemon-hook values, rsync-ssl wrapper inputs, and hostnames or hostspecs passed to remote-shell command handling.
Under whose privileges would injected commands run?
Commands may execute with the privileges of the rsync process or the user who invoked rsync. The practical impact therefore depends on which account runs the affected rsync client, daemon, wrapper, or hook.
Are daemon deployments the only affected use case?
No. The affected code paths include daemon hooks, but also the RSYNC_CONNECT_PROG environment variable, the rsync-ssl wrapper, and remote-shell command handling. Both daemon-related and client-side or wrapper-based rsync use should be reviewed.
What configurations should be prioritized if patching cannot happen immediately?
Prioritize systems where untrusted parties can influence rsync hostnames, hostspecs, environment variables, daemon-hook values, or rsync-ssl wrapper inputs. Restrict untrusted access to those inputs and avoid passing externally supplied values into rsync command construction until an updated version is deployed.