Description
The daemon in rsync 3.1.2, and 3.1.3-development before 2017-12-03, does not check for fnamecmp filenames in the daemon_filter_list data structure (in the recv_files function in receiver.c) and also does not apply the sanitize_paths protection mechanism to pathnames found in "xname follows" strings (in the read_ndx_and_attrs function in rsync.c), which allows remote attackers to bypass intended access restrictions.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rsync | 3.1.2-2.1 | — |
| Debian 13 | rsync | 3.1.2-2.1 | — |
| Debian 12 | rsync | 3.1.2-2.1 | — |
| Debian 9 | rsync | 3.1.2-1+deb9u1 | DSA-4068-1 |
| Debian 8 | rsync | 3.1.1-3+deb8u1 | DSA-4068-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | rsync | 3.0.9-4+deb7u1 | DLA-1218-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | rsync | 3.1.1-3ubuntu1.1 | USN-3506-1 |
| Ubuntu 14.04 LTS | rsync | 3.1.0-2ubuntu0.3 | USN-3506-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | rsync | 3.1.0-13.7.1 | SUSE-SU-2018:0118-1 |
| SLES 12 SP2 | rsync | 3.1.0-13.7.1 | SUSE-SU-2018:0118-1 |
| SLES 11 SP4 | rsync | 3.0.4-2.53.3.1 | SUSE-SU-2018:0117-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | rsync | 3.1.0-13.7.1 | SUSE-SU-2018:0118-1 |
| SLES for SAP 12 SP2 | rsync | 3.1.0-13.7.1 | SUSE-SU-2018:0118-1 |
| SLES for SAP 11 SP4 | rsync | 3.0.4-2.53.3.1 | SUSE-SU-2018:0117-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | rsync | 3.1.2-r7 | — |
| Alpine v3.23 | rsync | 3.1.2-r7 | — |
| Alpine v3.22 | rsync | 3.1.2-r7 | — |
| Alpine v3.21 | rsync | 3.1.2-r7 | — |
| Alpine v3.20 | rsync | 3.1.2-r7 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | rsync | 3.1.2-r7 | — |
| Alpine v3.18 | rsync | 3.1.2-r7 | — |
| Alpine v3.17 | rsync | 3.1.2-r7 | — |
| Alpine v3.16 | rsync | 3.1.2-r7 | — |
| Alpine v3.15 | rsync | 3.1.2-r7 | — |
| Alpine v3.14 | rsync | 3.1.2-r7 | — |
| Alpine v3.13 | rsync | 3.1.2-r7 | — |
| Alpine v3.12 | rsync | 3.1.2-r7 | — |
| Alpine v3.7 | rsync | 3.1.2-r7 | — |
Advisories 5
- DSA-4068-1 rsync - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1218-1 rsync - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3506-1 rsync vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2018:0118-1 Security update for rsync SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0117-1 Security update for rsync SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://git.samba.org/?p=rsync.git%3Ba=commit%3Bh=70aeb5fddd1b2f8e143276f8d5a085db16c593b9
- http://security.cucumberlinux.com/security/details.php?id=170
- DSA-4068 vendor-advisory
- [debian-lts-announce] 20171222 [SECURITY] [DLA 1218-1] rsync security update mailing-list
- https://git.samba.org/?p=rsync.git%3Ba=commit%3Bh=5509597decdbd7b91994210f700329d8a35e70a1