CVE-2017-17434
rsync: daemon does not check for fnamecmp filenames allowing for access restriction bypass
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Ubuntu (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | rsync | 3.1.2-4.ph1 |
| Photon OS 2.0 | rsync | 3.1.2-5.ph2 |
| Photon OS 3.0 | rsync | 3.1.3-2.ph3 |
| alpine 3.12 | rsync | 3.1.2-r7 |
| alpine 3.13 | rsync | 3.1.2-r7 |
| alpine 3.14 | rsync | 3.1.2-r7 |
| alpine 3.15 | rsync | 3.1.2-r7 |
| alpine 3.16 | rsync | 3.1.2-r7 |
| alpine 3.17 | rsync | 3.1.2-r7 |
| alpine 3.18 | rsync | 3.1.2-r7 |
| alpine 3.19 | rsync | 3.1.2-r7 |
| alpine 3.20 | rsync | 3.1.2-r7 |
Show all 33 entries from 33 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | rsync | 3.1.2-4.ph1 |
| Photon OS 2.0 | rsync | 3.1.2-5.ph2 |
| Photon OS 3.0 | rsync | 3.1.3-2.ph3 |
| alpine 3.12 | rsync | 3.1.2-r7 |
| alpine 3.13 | rsync | 3.1.2-r7 |
| alpine 3.14 | rsync | 3.1.2-r7 |
| alpine 3.15 | rsync | 3.1.2-r7 |
| alpine 3.16 | rsync | 3.1.2-r7 |
| alpine 3.17 | rsync | 3.1.2-r7 |
| alpine 3.18 | rsync | 3.1.2-r7 |
| alpine 3.19 | rsync | 3.1.2-r7 |
| alpine 3.20 | rsync | 3.1.2-r7 |
| alpine 3.21 | rsync | 3.1.2-r7 |
| alpine 3.22 | rsync | 3.1.2-r7 |
| alpine 3.23 | rsync | 3.1.2-r7 |
| alpine 3.24 | rsync | 3.1.2-r7 |
| alpine 3.7 | rsync | 3.1.2-r7 |
| alpine edge | rsync | 3.1.2-r7 |
| debian 11 | rsync | 3.1.2-2.1 |
| debian 12 | rsync | 3.1.2-2.1 |
| debian 13 | rsync | 3.1.2-2.1 |
| debian 14 | rsync | 3.1.2-2.1 |
| debian 7 | rsync | 3.0.9-4+deb7u1 |
| debian 8 | rsync | 3.1.1-3+deb8u1 |
| debian 9 | rsync | 3.1.2-1+deb9u1 |
| echo | rsync | 3.1.2-2.1 |
| Red Hat | rsync | no fix listed |
| ubuntu 14.04 | rsync | 3.1.0-2ubuntu0.3 |
| ubuntu 14.04-ESM | rsync | 3.1.0-2ubuntu0.3 |
| ubuntu 16.04 | rsync | 3.1.1-3ubuntu1.1 |
| ubuntu 16.04-ESM | rsync | 3.1.1-3ubuntu1.1 |
| ubuntu 17.04 | rsync | 3.1.2-1ubuntu0.1 |
| ubuntu 17.10 | rsync | 3.1.2-2ubuntu0.1 |
References
- http://security.cucumberlinux.com/security/details.php?id=170
- https://access.redhat.com/security/cve/CVE-2017-17434
- https://git.samba.org/?p=rsync.git%3Ba=commit%3Bh=5509597decdbd7b91994210f700329d8a35e70a1
- https://git.samba.org/?p=rsync.git%3Ba=commit%3Bh=70aeb5fddd1b2f8e143276f8d5a085db16c593b9
- https://lists.debian.org/debian-lts-announce/2017/12/msg00020.html
- https://nvd.nist.gov/vuln/detail/CVE-2017-17434
- https://ubuntu.com/security/notices/USN-3506-1
- https://ubuntu.com/security/notices/USN-3506-2