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.
Workaround:
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://access.redhat.com/errata/RHSA-2025:2600 | vendor advisory third party advisory |
https://access.redhat.com/errata/RHSA-2025:7050 | vendor advisory third party advisory |
https://access.redhat.com/errata/RHSA-2025:8385 | vendor advisory third party advisory |
https://access.redhat.com/security/cve/CVE-2024-12087 | third party advisory vdb entry |
https://bugzilla.redhat.com/show_bug.cgi?id=2330672 | issue tracking third party advisory |
https://kb.cert.org/vuls/id/952657 | third party advisory |
https://github.com/google/security-research/security/advisories/GHSA-p5pg-x43v-mvqj | exploit third party advisory |