Skip to content
Heist/ feed
Back to feed
Medium

Rsync: path traversal vulnerability in rsync

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-12084, CVE-2024-12085, CVE-2024-12086, CVE-2024-12087, CVE-2024-12088
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:20 UTC · Revision 1

Source evidence

Rsync: path traversal vulnerability in rsync

core-osv · Original source

Published 14 Jan 2025, 17:57 UTC

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.

osv:CVE-2024-12087
Complete source record
{
  "id": "5bd4352ca371c05ee1e8ce559db2bb0760d6197fbef593faa1f2165b805a42f2",
  "url": "https://osv.dev/vulnerability/CVE-2024-12087",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Rsync: path traversal vulnerability in rsync",
    "summary": "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.",
    "evidence": "osv:CVE-2024-12087",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-12087",
      "aliases": [
        "CVE-2024-12084",
        "CVE-2024-12085",
        "CVE-2024-12086",
        "CVE-2024-12087",
        "CVE-2024-12088",
        "GHSA-p5pg-x43v-mvqj"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.samba.org/rsync.git/",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "6c8ca91c731b7bf2b081694bda85b7dadc2b7aff"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:samba:rsync:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.3.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/rsyncproject/rsync",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "6c8ca91c731b7bf2b081694bda85b7dadc2b7aff"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:samba:rsync:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.3.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.2.7",
            "v3.3.0",
            "v3.3.0pre1",
            "v3.2.7pre1",
            "v3.2.6",
            "v3.2.5",
            "v3.2.5pre2",
            "v3.2.5pre1",
            "v3.2.4",
            "v3.2.4pre4",
            "v3.2.4pre3",
            "v3.2.4pre2",
            "v3.2.4pre1",
            "v3.2.3",
            "v3.2.3pre1",
            "v3.2.2",
            "v3.2.2pre3",
            "v3.2.2pre2",
            "v3.2.2pre1",
            "v3.2.1",
            "v3.2.1pre1",
            "v3.2.0",
            "v3.2.0pre3",
            "v3.2.0pre2",
            "v3.2.0pre1",
            "v3.1.3",
            "v3.1.3pre1",
            "v3.1.2",
            "v3.1.2pre1",
            "v3.1.1",
            "v3.1.1pre2",
            "v3.1.1pre1",
            "v3.1.0",
            "v3.1.0pre1",
            "v3.0.3",
            "v3.0.3pre3",
            "v3.0.3pre2",
            "v3.0.3pre1",
            "v3.0.2",
            "v3.0.1",
            "v3.0.1pre3",
            "v3.0.1pre2",
            "v3.0.1pre1",
            "v3.0.0",
            "v3.0.0pre10",
            "v3.0.0pre9",
            "v3.0.0pre8",
            "v3.0.0pre7",
            "v3.0.0pre6",
            "v3.0.0pre5",
            "v3.0.0pre4",
            "v3.0.0pre3",
            "v3.0.0pre2",
            "v3.0.0pre1",
            "v2.6.9",
            "v2.6.9pre3",
            "v2.6.9pre2",
            "v2.6.9pre1",
            "v2.6.8",
            "v2.6.8pre1",
            "v2.6.7",
            "v2.6.7pre3",
            "v2.6.7pre2",
            "v2.6.7pre1",
            "v2.6.6pre1",
            "v2.6.5",
            "v2.6.5pre2",
            "v2.6.5pre1",
            "v2.6.4",
            "v2.6.4pre4",
            "v2.6.4pre3",
            "v2.6.4pre2",
            "v2.6.4pre1",
            "v2.6.3",
            "v2.6.3pre2",
            "v2.6.3pre1",
            "v2.6.2",
            "v2.6.2pre1",
            "v2.6.1",
            "v2.6.1pre2",
            "v2.6.1pre1",
            "v2.6.0",
            "v2.6.0pre2",
            "v2.6.0pre1",
            "v2.5.6",
            "v2.5.5",
            "v2.5.5.rc1",
            "v2.5.4",
            "v2.5.4pre1",
            "v2.5.3",
            "v2.5.3pre1",
            "v2.5.2",
            "v2.5.2pre3",
            "v2.5.2pre2",
            "v2.5.2pre1",
            "v2.5.1",
            "v2.5.1pre3",
            "v2.5.1pre2",
            "v2.5.1pre1",
            "v2.5.0",
            "v2.4.7pre4",
            "v2.4.7pre2",
            "mbp_bk_export0",
            "v2.4.6",
            "v2.4.5",
            "v2.4.4",
            "v2.4.3",
            "v2.4.2",
            "v2.4.1",
            "v2.4.0",
            "v2.3.2",
            "v2.3.1",
            "v2.3.0",
            "v2.2.1",
            "v2.2.0",
            "v2.1.1",
            "v2.1.0",
            "v2.0.19",
            "v2.0.18",
            "v2.0.17",
            "v2.0.16",
            "v2.0.15",
            "v2.0.14",
            "v2.0.13",
            "v2.0.12",
            "v2.0.11",
            "v2.0.10",
            "v2.0.9",
            "v2.0.8",
            "v2.0.7",
            "v2.0.6",
            "v2.0.5",
            "v2.0.4",
            "v2.0.3",
            "v2.0.2",
            "v2.0.1",
            "v2.0.0",
            "v1.7.4",
            "v1.7.3",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0",
            "v1.6.9",
            "v1.6.8",
            "v1.6.7",
            "v1.6.6",
            "v1.6.5",
            "v1.6.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-12087.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.286667416Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/downloads/content/package-browser/",
        "https://catalog.redhat.com/software/containers/",
        "https://kb.cert.org/vuls/id/952657",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00008.html",
        "https://www.kb.cert.org/vuls/id/952657",
        "https://access.redhat.com/errata/RHBA-2025:6470",
        "https://access.redhat.com/errata/RHSA-2025:23154",
        "https://access.redhat.com/errata/RHSA-2025:23235",
        "https://access.redhat.com/errata/RHSA-2025:23407",
        "https://access.redhat.com/errata/RHSA-2025:23415",
        "https://access.redhat.com/errata/RHSA-2025:23416",
        "https://access.redhat.com/errata/RHSA-2025:23842",
        "https://access.redhat.com/errata/RHSA-2025:23853",
        "https://access.redhat.com/errata/RHSA-2025:23854",
        "https://access.redhat.com/errata/RHSA-2025:23858",
        "https://access.redhat.com/errata/RHSA-2025:2600",
        "https://access.redhat.com/errata/RHSA-2025:7050",
        "https://access.redhat.com/errata/RHSA-2025:8385",
        "https://access.redhat.com/security/cve/CVE-2024-12087",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12087.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-12087",
        "https://security.netapp.com/advisory/ntap-20250131-0002/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2330672",
        "https://github.com/RsyncProject/rsync",
        "https://github.com/google/security-research/security/advisories/GHSA-p5pg-x43v-mvqj"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "redhat",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "0:3.4.1-2.el10"
                  },
                  {
                    "fixed": "0:3.0.6-12.el6_10.2"
                  },
                  {
                    "fixed": "0:3.1.2-12.el7_9.2"
                  },
                  {
                    "fixed": "0:3.1.3-21.el8_10"
                  },
                  {
                    "fixed": "0:3.1.3-7.el8_2.6"
                  },
                  {
                    "fixed": "0:3.1.3-12.el8_4.6"
                  },
                  {
                    "fixed": "0:3.1.3-12.el8_4.6"
                  },
                  {
                    "fixed": "0:3.1.3-14.el8_6.9"
                  },
                  {
                    "fixed": "0:3.1.3-14.el8_6.9"
                  },
                  {
                    "fixed": "0:3.1.3-14.el8_6.9"
                  },
                  {
                    "fixed": "0:3.1.3-20.el8_8.4"
                  },
                  {
                    "fixed": "0:3.1.3-20.el8_8.4"
                  },
                  {
                    "fixed": "0:3.2.5-3.el9"
                  },
                  {
                    "fixed": "0:3.2.5-3.el9"
                  },
                  {
                    "fixed": "0:3.2.3-9.el9_0.4"
                  },
                  {
                    "fixed": "0:3.2.3-19.el9_2.2"
                  },
                  {
                    "fixed": "0:3.2.3-19.el9_4.2"
                  },
                  {
                    "fixed": "1.14.2-1748467619"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "InverseAffectedRanges"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12087.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-12084",
        "evidence": "/aliases"
      },
      {
        "value": "CVE-2024-12085",
        "evidence": "/aliases"
      },
      {
        "value": "CVE-2024-12086",
        "evidence": "/aliases"
      },
      {
        "value": "CVE-2024-12087",
        "evidence": "/id"
      },
      {
        "value": "CVE-2024-12088",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499593,
  "published_at": "2025-01-14T17:57:33.927+00:00"
}