6.5medium
Rsync: path traversal vulnerability in rsync
- Severity
- 6.5medium CVSS:3.1 by redhat
- Exploit likelihood
- 2.26% (higher than 83% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rsync | up to 3.3.0 Not affected: from 0:3.4.1-2.el10 before *, from 0:3.0.6-12.el6_10.2 before *, from 0:3.1.2-12.el7_9.2 before *, from 0:3.1.3-21.el8_10 before *, from 0:3.1.3-7.el8_2.6 before *, from 0:3.1.3-12.el8_4.6 before * | CVE List |
| discovery/discovery-ui-rhel9 | Not specified Not affected: from 1.14.2-1748467619 before * | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
| samba rsync | up to 3.3.0 | NVD |
| almalinux almalinux | 8.0, 9.0, 10.0 | NVD |
| archlinux arch_linux | Not specified | NVD |
| gentoo linux | Not specified | NVD |
| nixos nixos | before 24.11 | NVD |
| suse suse_linux | Not specified | NVD |
| tritondatacenter smartos | before 20250123 | NVD |
| redhat enterprise_linux | 8.0, 9.0 | NVD |
| redhat enterprise_linux_eus | 9.6 | NVD |
| redhat enterprise_linux_for_arm_64 | 8.0_aarch64, 9.0_aarch64 | NVD |
| redhat enterprise_linux_for_arm_64_eus | 9.6_aarch64 | NVD |
| redhat enterprise_linux_for_ibm_z_systems | 8.0_s390x, 9.0_s390x | NVD |
| redhat enterprise_linux_for_ibm_z_systems_eus | 9.6_s390x | NVD |
| redhat enterprise_linux_for_power_little_endian | 8.0_ppc64le, 9.0_ppc64le | NVD |
| redhat enterprise_linux_for_power_little_endian_eus | 9.6_ppc64le | NVD |
| redhat enterprise_linux_server_aus | 9.6 | NVD |
| redhat enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions | 9.6_ppc64le | NVD |
| redhat enterprise_linux_update_services_for_sap_solutions | 9.6 | NVD |
All scores
| redhat | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Existe una vulnerabilidad Path Traversal en rsync. Se origina en un comportamiento habilitado por la opción `--inc-recursive`, una opción habilitada de manera predeterminada para muchas opciones de cliente y que puede ser habilitada por el servidor incluso si no está habilitada explícitamente por el cliente. Al usar la opción `--inc-recursive`, la falta de una verificación de enlace simbólico adecuada junto con las comprobaciones de deduplicación que se realizan en una lista de archivos por archivo podría permitir que un servidor escriba archivos fuera del directorio de destino previsto del cliente. Un servidor malintencionado podría escribir archivos malintencionados en ubicaciones arbitrarias con nombres de directorios/rutas válidos en el cliente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-12087 changed 2026-11-03 | CVE Terms of Use |
| NVD | CVE-2024-12087 changed 2026-10-21 | Public domain |