Skip to main content
Public proof of conceptFix available

CVE-2024-12087

Rsync: path traversal vulnerability in rsync

A public proof of concept exists; no exploitation attested.

  • Published2025-01-14
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-01-1417:57CVE publishedCNA

Versions per branch

NVD
Almalinux
BranchAffectedFixed in
8.0= 8.0no fix published
9.0= 9.0no fix published
10.0= 10.0no fix published
Redhat enterprise linux
BranchAffectedFixed in
8.0= 8.0no fix published
9.0= 9.0no fix published
Redhat enterprise linux for arm 64
BranchAffectedFixed in
8.0= 8.0_aarch64no fix published
9.0= 9.0_aarch64no fix published

15 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA20 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

14 more products in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-10-21

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • rsyncUbuntu:Pro:18.04:LTSall versions · fixed in 3.1.2-2.1ubuntu1.6+esm1
  • rsyncUbuntu:Pro:16.04:LTSall versions · fixed in 3.1.1-3ubuntu1.3+esm3
  • rsyncUbuntu:Pro:14.04:LTSall versions · fixed in 3.1.0-2ubuntu0.4+esm1
  • rsyncUbuntu:24.04:LTSall versions · fixed in 3.2.7-1ubuntu1.1
  • rsyncUbuntu:22.04:LTSall versions · fixed in 3.2.7-0ubuntu0.22.04.3
  • rsyncUbuntu:20.04:LTSall versions · fixed in 3.1.3-8ubuntu0.8
  • rsyncTuxCare:Ubuntu:16.04all versions · fixed in 3.1.1-3ubuntu1.3+tuxcare.els7
  • rsyncTuxCare:OracleLinux:7all versions · fixed in 3.1.2-12.el7_9.tuxcare.els3

79 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-12087 Red Hat Product Security156 products fixed · 2 known affected

    rsync: Path traversal vulnerability in rsync

    openshift/ose-rhel-coreos-8 as a component of Red Hat OpenShift Container Platform 4 · openshift/ose-rhel-coreos-9 as a component of Red Hat OpenShift Container Platform 4

  • RHSA-2025:23858 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: rsync security update

  • RHSA-2025:23854 Red Hat Product Security24 products fixed

    Red Hat Security Advisory: rsync security update

  • RHSA-2025:23853 Red Hat Product Security10 products fixed

    Red Hat Security Advisory: rsync security update

  • RHSA-2025:23842 Red Hat Product Security5 products fixed

    Red Hat Security Advisory: rsync security update

  • RHSA-2025:23415 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: rsync security update

8 more advisories

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2025:23858 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. Vendor fix Red Hat Product Security RHSA-2025:8385 · 2 productsThe containers required to run Discovery can be installed through discovery-installer RPM. See the official documentation for more details.
  3. Workaround from the vendor Red Hat Product Security RHSA-2025:23858 · 13 productsMitigation 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.

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
2025-01-14
Last modified
2026-10-21
NVD status
Modified
GitHub advisory
GHSA-9x68-7qq6-v523

Frequently asked questions

What is CVE-2024-12087?

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.

Is CVE-2024-12087 actively exploited?

A proof-of-concept exploit exists for CVE-2024-12087, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-12087?

CVE-2024-12087 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running rsync? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record