CVE-2024-12087
JSON

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 packageVersionsReported by
rsyncup 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-rhel9Not specified
Not affected: from 1.14.2-1748467619 before *
CVE List
openshift/ose-rhel-coreos-8Not specifiedCVE List
openshift/ose-rhel-coreos-9Not specifiedCVE List
samba rsyncup to 3.3.0NVD
almalinux almalinux8.0, 9.0, 10.0NVD
archlinux arch_linuxNot specifiedNVD
gentoo linuxNot specifiedNVD
nixos nixosbefore 24.11NVD
suse suse_linuxNot specifiedNVD
tritondatacenter smartosbefore 20250123NVD
redhat enterprise_linux8.0, 9.0NVD

All scores

redhat6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-22

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

https://access.redhat.com/errata/RHBA-2025:6470vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23154vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23235vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23407vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23415vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23416vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23842vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23853vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23854vendor-advisory
https://access.redhat.com/errata/RHSA-2025:23858vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2600third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:7050third-party-advisory, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-12087 changed 2026-11-03CVE Terms of Use
NVDCVE-2024-12087 changed 2026-10-21Public domain