REDHAT-BUG-2515385: High severity rsync rsync vulnerability
rsync 3.1.0 before 3.5.0 contains an authorization bypass in auth users directive parsing. The auth users parser uses comma-only tokenization when splitting the user list, which fails to correctly handle entries of the form @Group Name where the group name contains a space. The space within the group name causes the parser to split the entry at the space boundary, discarding the deny rule associated with the group. An authenticated user whose username or group membership would be denied by an @Group Name auth users entry can connect to a restricted module because the deny rule is silently discarded during parsing.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rsyncto a version that resolves this vulnerability.Fixed in 3.5.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Rsync deployments using the daemon authentication configuration are exposed if an auth users directive contains an @Group Name entry where the group name includes a space and is intended to deny access to a module. The affected version range is rsync 3.1.0 before 3.5.0.
What does an attacker need to exploit the bypass?
The attacker must be able to authenticate to the rsync service and have a username or group membership that should be denied by the affected @Group Name entry. They can then connect to the restricted module because the deny rule is discarded during parsing.
How can I determine whether a module is affected?
Review its auth users directive for @Group Name entries with spaces in the group name that are used as deny rules. Such entries may be silently split at the space boundary and therefore not enforced.
What can be done if an upgrade is not immediately possible?
Avoid relying on @Group Name deny entries where the group name contains a space in auth users configuration. Restrict access using configuration entries that do not trigger this parsing behavior until rsync can be updated.