CVE-2024-12087

Rsync: path traversal vulnerability in rsync

6.5 medium EPSS 2.26%

Published 14 Jan 2025 Updated 3 Nov 2026 CNA: redhat

Check your servers for CVE-2024-12087

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-12087 affects rsync, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

6.5 medium CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
required: a user has to do something, such as open a link or a file
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 2.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 83.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 26 Feb 2025):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

Affected products

As the CNA lists them.

ProductVersions
rsync
package rsync
affected up to and including 3.3.0
Other versions: unaffected
Red Hat Enterprise Linux 10
package rsync
unaffected 0:3.4.1-2.el10 and later
Other versions: affected
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION
package rsync
unaffected 0:3.0.6-12.el6_10.2 and later
Other versions: affected
Red Hat Enterprise Linux 7 Extended Lifecycle Support
package rsync
unaffected 0:3.1.2-12.el7_9.2 and later
Other versions: affected
Red Hat Enterprise Linux 8
package rsync
unaffected 0:3.1.3-21.el8_10 and later
Other versions: affected
Red Hat Enterprise Linux 8.2 Advanced Update Support
package rsync
unaffected 0:3.1.3-7.el8_2.6 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
package rsync
unaffected 0:3.1.3-12.el8_4.6 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
package rsync
unaffected 0:3.1.3-12.el8_4.6 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
package rsync
unaffected 0:3.1.3-14.el8_6.9 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
package rsync
unaffected 0:3.1.3-14.el8_6.9 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
package rsync
unaffected 0:3.1.3-14.el8_6.9 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
package rsync
unaffected 0:3.1.3-20.el8_8.4 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
package rsync
unaffected 0:3.1.3-20.el8_8.4 and later
Other versions: affected
Red Hat Enterprise Linux 9
package rsync
unaffected 0:3.2.5-3.el9 and later
Other versions: affected
Red Hat Enterprise Linux 9
package rsync
unaffected 0:3.2.5-3.el9 and later
Other versions: affected
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package rsync
unaffected 0:3.2.3-9.el9_0.4 and later
Other versions: affected
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
package rsync
unaffected 0:3.2.3-19.el9_2.2 and later
Other versions: affected
Red Hat Enterprise Linux 9.4 Extended Update Support
package rsync
unaffected 0:3.2.3-19.el9_4.2 and later
Other versions: affected
Red Hat Discovery 1.14
package discovery/discovery-ui-rhel9
unaffected 1.14.2-1748467619 and later
Other versions: affected
Red Hat OpenShift Container Platform 4
package openshift/ose-rhel-coreos-8
affected the record does not list versions
Red Hat OpenShift Container Platform 4
package openshift/ose-rhel-coreos-9
affected the record does not list versions

Is my server affected?

Find the installed version of rsync and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i rsync
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-12087 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-12087

RHEL, Rocky, Alma, Fedora

rpm -q rsync
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-12087

Alpine

apk list --installed | grep -i rsync

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-12087
trivy image --scanners vuln IMAGE | grep CVE-2024-12087

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Exploits and proof of concept

Other references

Source: the record CVE-2024-12087 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.