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.
Problem types
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version
0:3.1.3-21.el8_10 (rpm) before *
0:3.2.5-3.el9 (rpm) before *
0:3.2.5-3.el9 (rpm) before *
sha256:492e412759cf0eedfa5b557f7b0865f8864f84d0ed75e11dc8d7a840837d9644 (rpm) before *
Timeline
| 2024-12-05: | Reported to Red Hat. |
| 2025-01-14: | Made public. |
Credits
Red Hat would like to thank Jasiel Spelman (Google), Pedro Gallegos (Google), and Simon Scannell (Google) for reporting this issue.
References
github.com/...search/security/advisories/GHSA-p5pg-x43v-mvqj
security.netapp.com/advisory/ntap-20250131-0002/
lists.debian.org/debian-lts-announce/2025/01/msg00008.html
www.kb.cert.org/vuls/id/952657
access.redhat.com/errata/RHSA-2025:2600 (RHSA-2025:2600)
access.redhat.com/errata/RHSA-2025:7050 (RHSA-2025:7050)
access.redhat.com/errata/RHSA-2025:8385 (RHSA-2025:8385)
access.redhat.com/security/cve/CVE-2024-12087
bugzilla.redhat.com/show_bug.cgi?id=2330672 (RHBZ#2330672)