| Name | CVE-2024-12087 |
| Description | A path traversal vulnerability exists in rsync. It stems from behavior enabled by the `--inc-recursive` option, a default-enabled option for many client options and can be enabled by the server even if not explicitly enabled by the client. When using the `--inc-recursive` option, a lack of proper symlink verification coupled with deduplication checks occurring on a per-file-list basis could allow a server to write files outside of the client's intended destination directory. A malicious server could write malicious files to arbitrary locations named after valid directories/paths on the client. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4015-1, DSA-5843-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| rsync (PTS) | bullseye | 3.2.3-4+deb11u1 | vulnerable |
| bullseye (security) | 3.2.3-4+deb11u3 | fixed | |
| bookworm | 3.2.7-1+deb12u4 | fixed | |
| bookworm (security) | 3.2.7-1+deb12u2 | fixed | |
| trixie | 3.4.1+ds1-5+deb13u1 | fixed | |
| forky, sid | 3.4.1+ds1-7 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| rsync | source | bullseye | 3.2.3-4+deb11u2 | DLA-4015-1 | ||
| rsync | source | bookworm | 3.2.7-1+deb12u1 | DSA-5843-1 | ||
| rsync | source | (unstable) | 3.3.0+ds1-3 |
https://www.openwall.com/lists/oss-security/2025/01/14/3
Fixed by: https://git.samba.org/?p=rsync.git;a=commit;h=688f5c379a433038bde36897a156d589be373a98 (v3.4.0)
Fixed by: https://git.samba.org/?p=rsync.git;a=commit;h=344327385fa47fa5bb67a32c237735e6240cfb93 (v3.4.0)
Fix introduces regression: https://github.com/RsyncProject/rsync/issues/697 (#1093052)
Regression fix: https://github.com/RsyncProject/rsync/commit/996af4a79f9afe4d7158ecdd87c78cee382c6b39
https://phrack.org/issues/72/11_md#article