cve.bz

CVE-2024-12087 Path traversal

7.5 highExploit referenceEPSS 2.3%Fix available

High (7.5). EPSS 2.3% estimated probability of exploitation activity in the next 30 days.

On this page
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 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-02-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:3.4.1-2.el10
  • Red Hat Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION: fixed in 0:3.0.6-12.el6_10.2
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support: fixed in 0:3.1.2-12.el7_9.2
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:3.1.3-21.el8_10
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:3.1.3-7.el8_2.6
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:3.1.3-12.el8_4.6
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: fixed in 0:3.1.3-12.el8_4.6
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:3.1.3-14.el8_6.9
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-12087 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-12087?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-12087?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-12087 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2024-12087

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2024-12087](https://cve.bz/cve/badge/CVE-2024-12087.svg)](https://cve.bz/cve/CVE-2024-12087)

HTML:

<a href="https://cve.bz/cve/CVE-2024-12087"><img src="https://cve.bz/cve/badge/CVE-2024-12087.svg" alt="CVE-2024-12087"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:3.4.1-2.el10
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION0:3.0.6-12.el6_10.2
Red Hat Enterprise Linux 7 Extended Lifecycle Support0:3.1.2-12.el7_9.2
Red Hat Enterprise Linux 80:3.1.3-21.el8_10
Red Hat Enterprise Linux 8.2 Advanced Update Support0:3.1.3-7.el8_2.6
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:3.1.3-12.el8_4.6
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:3.1.3-12.el8_4.6
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:3.1.3-14.el8_6.9
Red Hat Enterprise Linux 8.6 Telecommunications Update Service0:3.1.3-14.el8_6.9
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:3.1.3-14.el8_6.9
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:3.1.3-20.el8_8.4
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:3.1.3-20.el8_8.4
Red Hat Enterprise Linux 90:3.2.5-3.el9
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:3.2.3-9.el9_0.4
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:3.2.3-19.el9_2.2
Red Hat Enterprise Linux 9.4 Extended Update Support0:3.2.3-19.el9_4.2
Red Hat Discovery 1.141.14.2-1748467619

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rsync3.2.3-4+deb11u2DLA-4015-1
Debian12rsync3.2.7-1+deb12u1DEBIAN-CVE-2024-12087 DSA-5843-1
Debian13, 14rsync3.3.0+ds1-3DEBIAN-CVE-2024-12087
Ubuntu20.04:LTSrsync3.1.3-8ubuntu0.8UBUNTU-CVE-2024-12087 USN-7206-1
Ubuntu22.04:LTSrsync3.2.7-0ubuntu0.22.04.3UBUNTU-CVE-2024-12087 USN-7206-1
Ubuntu24.04:LTSrsync3.2.7-1ubuntu1.1UBUNTU-CVE-2024-12087 USN-7206-1
UbuntuPro:14.04:LTSrsync3.1.0-2ubuntu0.4+esm1UBUNTU-CVE-2024-12087 USN-7206-1
UbuntuPro:16.04:LTSrsync3.1.1-3ubuntu1.3+esm3UBUNTU-CVE-2024-12087 USN-7206-1
UbuntuPro:18.04:LTSrsync3.1.2-2.1ubuntu1.6+esm1UBUNTU-CVE-2024-12087 USN-7206-1
Red Hatenterprise_linux:8::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-21.el8_10RHSA-2025:2600
Red Hatenterprise_linux:9::appstreamrsync-daemon, rsync-rrsync0:3.2.5-3.el9RHSA-2025:7050
Red Hatenterprise_linux:9::baseosrsync, rsync-debuginfo, rsync-debugsource0:3.2.5-3.el9RHSA-2025:7050
Red Hatenterprise_linux:10.0rsync, rsync-daemon, rsync-rrsync and 2 more0:3.4.1-2.el10RHBA-2025:6470
Red Hatrhel_aus:8.2::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-7.el8_2.6RHSA-2025:23842
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-12.el8_4.6RHSA-2025:23853
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-14.el8_6.9RHSA-2025:23854
Red Hatrhel_e4s:8.8::baseos, rhel_tus:8.8::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-20.el8_8.4RHSA-2025:23858
Red Hatrhel_e4s:9.0::appstreamrsync-daemon0:3.2.3-9.el9_0.4RHSA-2025:23407
Red Hatrhel_e4s:9.0::baseosrsync, rsync-debuginfo, rsync-debugsource0:3.2.3-9.el9_0.4RHSA-2025:23407
Red Hatrhel_e4s:9.2::appstreamrsync-daemon0:3.2.3-19.el9_2.2RHSA-2025:23235
Red Hatrhel_e4s:9.2::baseosrsync, rsync-debuginfo, rsync-debugsource0:3.2.3-19.el9_2.2RHSA-2025:23235
4 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morersync3.2.3-150000.4.33.1SUSE-SU-2025:0157-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 10 morersync3.2.3-150400.3.17.1SUSE-SU-2025:0165-1
SUSELinux Enterprise Module for Basesystem 15 SP6rsync3.2.7-150600.3.8.1SUSE-SU-2025:0156-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5rsync3.1.3-3.22.1SUSE-SU-2025:0166-1
SUSELinux Micro 6.0rsync3.2.7-4.1SUSE-SU-2025:20122-1
SUSELinux Micro 6.1rsync3.3.0-slfo.1.1_3.1SUSE-SU-2025:20223-1
openSUSELeap 15.6rsync3.2.7-150600.3.8.1SUSE-SU-2025:0156-1
openSUSETumbleweedrsync3.4.1-1.1openSUSE-SU-2025:14665-1
AlmaLinux8rsync, rsync-daemon3.1.3-21.el8_10ALSA-2025:2600
AlmaLinux9rsync, rsync-daemon, rsync-rrsync3.2.5-3.el9ALSA-2025:7050
Rocky Linux8rsync0:3.1.3-21.el8_10RLSA-2025:2600
Rocky Linux9rsync0:3.2.5-3.el9RLSA-2025:7050
Alpinev3.18, v3.19, v3.20 and 4 morersync3.4.0-r0ALPINE-CVE-2024-12087
Azure Linux2rsync3.4.1-1AZL-55655
Azure Linux3rsync3.4.1-1AZL-55682
Alpaquita23rsync3.2.7-r1BELL-CVE-2024-12087
Alpaquitastreamrsync3.4.1-r0BELL-CVE-2024-12087

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this flaw to have moderate severity as it depends on specific configurations for the attack to succeed, symbolic link syncing must be enabled (explicitly by providing the `--links` option or implicitly such as with `--archive`) and the client must connect to a malicious or compromised server.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10rsync-0:3.4.1-2.el10Fixed 2025-05-13RHBA-2025:6470
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONrsync-0:3.0.6-12.el6_10.2Fixed 2025-12-17RHSA-2025:23416
Red Hat Enterprise Linux 7 Extended Lifecycle Supportrsync-0:3.1.2-12.el7_9.2Fixed 2025-12-17RHSA-2025:23415
Red Hat Enterprise Linux 8rsync-0:3.1.3-21.el8_10Fixed 2025-03-11RHSA-2025:2600
Red Hat Enterprise Linux 8.2 Advanced Update Supportrsync-0:3.1.3-7.el8_2.6Fixed 2025-12-22RHSA-2025:23842
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportrsync-0:3.1.3-12.el8_4.6Fixed 2025-12-22RHSA-2025:23853
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onrsync-0:3.1.3-12.el8_4.6Fixed 2025-12-22RHSA-2025:23853
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportrsync-0:3.1.3-14.el8_6.9Fixed 2025-12-22RHSA-2025:23854
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicersync-0:3.1.3-14.el8_6.9Fixed 2025-12-22RHSA-2025:23854
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsrsync-0:3.1.3-14.el8_6.9Fixed 2025-12-22RHSA-2025:23854
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicersync-0:3.1.3-20.el8_8.4Fixed 2025-12-22RHSA-2025:23858
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsrsync-0:3.1.3-20.el8_8.4Fixed 2025-12-22RHSA-2025:23858
Red Hat Enterprise Linux 9rsync-0:3.2.5-3.el9Fixed 2025-05-13RHSA-2025:7050
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsrsync-0:3.2.3-9.el9_0.4Fixed 2025-12-17RHSA-2025:23407
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsrsync-0:3.2.3-19.el9_2.2Fixed 2025-12-16RHSA-2025:23235
Red Hat Enterprise Linux 9.4 Extended Update Supportrsync-0:3.2.3-19.el9_4.2Fixed 2025-12-15RHSA-2025:23154
Red Hat Discovery 1.14discovery/discovery-ui-rhel9:1.14.2-1748467619Fixed 2025-06-02RHSA-2025:8385
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-12087.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON