# CVE-2024-12085: Rsync: info leak via uninitialized stack contents

> An attacker can leak uninitialized stack data by manipulating checksum length during file comparison, potentially exposing sensitive memory contents.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 Jan 2025
- **Updated:** 13 Oct 2026
- **Also known as:** ALPINE-CVE-2024-12085, ALSA-2025:0324, ALSA-2025:0325, AZL-55649, AZL-55664, BELL-CVE-2024-12085, CLSA-2025-1737464476, CLSA-2025-1737471454, CLSA-2025-1737568622, CLSA-2025-1737569495, CLSA-2025-1737569565, CLSA-2025-1737993115, CLSA-2026-1786454415, DEBIAN-CVE-2024-12085, GHSA-xh5q-pch5-g3xq, JLSEC-2025-324, RHSA-2025:0324, RHSA-2025:0325, RHSA-2025:0637, RHSA-2025:0688, RHSA-2025:0714, RHSA-2025:0774, RHSA-2025:0787, RHSA-2025:0790, RHSA-2025:0849, RHSA-2025:0884, RHSA-2025:0885, RLSA-2025:0324, RLSA-2025:0325, UBUNTU-CVE-2024-12085

## What is CVE-2024-12085?

CVE-2024-12085 is a high-severity vulnerability in Gentoo Linux, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A flaw was found in rsync which could be triggered when rsync compares file checksums. This flaw allows an attacker to manipulate the checksum length (s2length) to cause a comparison between a checksum and uninitialized memory and leak one byte of uninitialized stack data at a time.

Weakness: CWE-908 (Use of Uninitialized Resource)

## Which versions are affected by CVE-2024-12085?

It affects 22 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `rsync` | AlmaLinux:8 | All versions | 3.1.3-20.el8_10 |
| `rsync-daemon` | AlmaLinux:8 | All versions | 3.1.3-20.el8_10 |
| `rsync` | AlmaLinux:9 | All versions | 3.2.3-20.el9_5.1 |
| `rsync-daemon` | AlmaLinux:9 | All versions | 3.2.3-20.el9_5.1 |
| `rsync` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
| `rsync-daemon` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
| `rsync-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
| `rsync-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.1.3-20.el8_10 |
| `rsync-daemon` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.2.3-20.el9_5.1 |
| `rsync` | Red Hat:enterprise_linux:9::baseos | All versions | 0:3.2.3-20.el9_5.1 |
| `rsync-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:3.2.3-20.el9_5.1 |
| `rsync-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 0:3.2.3-20.el9_5.1 |
| `rsync` | Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
| `rsync-daemon` | Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
| `rsync-debuginfo` | Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
| `rsync-debugsource` | Red Hat:rhel_aus:8.2::baseos | All versions | 0:3.1.3-7.el8_2.3 |
| `rsync` | Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync-daemon` | Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync-debuginfo` | Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync-debugsource` | Red Hat:rhel_aus:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync` | Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync-daemon` | Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync-debuginfo` | Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync-debugsource` | Red Hat:rhel_aus:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync` | Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync-daemon` | Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync-debuginfo` | Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync-debugsource` | Red Hat:rhel_e4s:8.4::baseos | All versions | 0:3.1.3-12.el8_4.3 |
| `rsync` | Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync-daemon` | Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync-debuginfo` | Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync-debugsource` | Red Hat:rhel_e4s:8.6::baseos | All versions | 0:3.1.3-14.el8_6.6 |
| `rsync-daemon` | Red Hat:rhel_e4s:9.0::appstream | All versions | 0:3.2.3-9.el9_0.3 |
| `rsync` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:3.2.3-9.el9_0.3 |
| `rsync-debuginfo` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:3.2.3-9.el9_0.3 |
| `rsync-debugsource` | Red Hat:rhel_e4s:9.0::baseos | All versions | 0:3.2.3-9.el9_0.3 |
| `rsync` | Red Hat:rhel_els:6 | All versions | 0:3.0.6-12.el6_10.1 |
| `rsync-debuginfo` | Red Hat:rhel_els:6 | All versions | 0:3.0.6-12.el6_10.1 |
| `rsync` | Red Hat:rhel_els:7 | All versions | 0:3.1.2-12.el7_9.1 |
| `rsync-debuginfo` | Red Hat:rhel_els:7 | All versions | 0:3.1.2-12.el7_9.1 |

Products: Almalinux Almalinux, Archlinux Arch Linux, Gentoo Linux, Nixos Nixos, Redhat Enterprise Linux, Redhat Enterprise Linux Eus, Redhat Enterprise Linux for Arm 64, Redhat Enterprise Linux for Arm 64 Eus, Redhat Enterprise Linux for Ibm Z Systems, Redhat Enterprise Linux for Ibm Z Systems Eus, Redhat Enterprise Linux for Power Little Endian, Redhat Enterprise Linux for Power Little Endian Eus, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server for Power Little Endian Update Services for Sap Solutions, Redhat Enterprise Linux Server Tus, Redhat Enterprise Linux Update Services for Sap Solutions, Redhat Openshift, Redhat Openshift Container Platform, Samba Rsync and 2 more.

## How do I fix CVE-2024-12085?

Apply the vendor's patch.

## Is CVE-2024-12085 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12085 exists.

Public exploit code:

- Exploit for CVE-2024-12085 Infoleak (github_poc): https://github.com/Otsutez/cve-2024-12085

## Other vulnerabilities in Gentoo Linux

- [CVE-2024-12084](https://insights.sbomify.com/CVE-2024-12084/): Rsync: heap buffer overflow in rsync due to improper checksum length handling (critical 9.8)
- [CVE-2024-6387](https://insights.sbomify.com/CVE-2024-6387/): Openssh: regresshion - race condition in ssh allows rce/dos (high 8.1)
- [CVE-2024-12087](https://insights.sbomify.com/CVE-2024-12087/): Rsync: path traversal vulnerability in rsync (medium 6.5)
- [CVE-2024-12088](https://insights.sbomify.com/CVE-2024-12088/): Rsync: --safe-links option bypass leads to path traversal (medium 6.5)
- [CVE-2024-12086](https://insights.sbomify.com/CVE-2024-12086/): Rsync: rsync server leaks arbitrary client files (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-12085 and fix it if it is affected.

What it is: CVE-2024-12085 is a high-severity vulnerability in Gentoo Linux, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12085 exists.

Affected product: Gentoo Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-12085/ (Markdown: https://insights.sbomify.com/CVE-2024-12085/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-12085
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-12085
- OSV: https://osv.dev/vulnerability/CVE-2024-12085

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-12085/
Summaries are generated and may contain mistakes; the official description above is the record.
