CVE-2017-17434
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | rsync | Fixed | 3.1.1-3ubuntu1.1 | UBUNTU-CVE-2017-17434 |
| Ubuntu 14.04 | rsync | Fixed | 3.1.0-2ubuntu0.3 | UBUNTU-CVE-2017-17434 |
| Debian 14 | rsync | Fixed | 3.1.2-2.1 | DEBIAN-CVE-2017-17434 |
| Debian 13 | rsync | Fixed | 3.1.2-2.1 | DEBIAN-CVE-2017-17434 |
| Debian 12 | rsync | Fixed | 3.1.2-2.1 | DEBIAN-CVE-2017-17434 |
| Red Hat Enterprise Linux 7 | rsync | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | rsync | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | rsync | Will not fix Will not fix | ||
| Alpine Linux 3.24 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.23 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.22 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.21 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.20 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.19 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.18 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.17 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.16 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.15 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.14 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.13 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.12 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
| Alpine Linux 3.7 | rsync | Fixed | 3.1.2-r7 | ALPINE-CVE-2017-17434 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2017/dsa-4068 (vendor-advisory)
References
- https://git.samba.org/?p=rsync.git%3Ba=commit%3Bh=70aeb5fddd1b2f8e143276f8d5a085db16c593b9
- http://security.cucumberlinux.com/security/details.php?id=170
- https://www.debian.org/security/2017/dsa-4068
- https://lists.debian.org/debian-lts-announce/2017/12/msg00020.html
- https://git.samba.org/?p=rsync.git%3Ba=commit%3Bh=5509597decdbd7b91994210f700329d8a35e70a1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.