CVEfocus › CVE database › CVE-2024-12085

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

CVSS 7.5 HighEPSS 2.1% (higher than 83% of CVEs)Published 2025-01-14Updated 2026-11-10Assigner: redhat

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.

CWE-908

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

26Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04rsyncFixed3.2.7-1ubuntu1.1UBUNTU-CVE-2024-12085
Ubuntu 22.04rsyncFixed3.2.7-0ubuntu0.22.04.3UBUNTU-CVE-2024-12085
Ubuntu 20.04rsyncFixed3.1.3-8ubuntu0.8UBUNTU-CVE-2024-12085
Ubuntu 18.04rsyncFix pending3.1.2-2.1ubuntu1.6+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-12085
Ubuntu 16.04rsyncFix pending3.1.1-3ubuntu1.3+esm3 (Ubuntu Pro)UBUNTU-CVE-2024-12085
Ubuntu 14.04rsyncFix pending3.1.0-2ubuntu0.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-12085
Debian 14rsyncFixed3.3.0+ds1-3DEBIAN-CVE-2024-12085
Debian 13rsyncFixed3.3.0+ds1-3DEBIAN-CVE-2024-12085
Debian 12rsyncFixed3.2.7-1+deb12u1DEBIAN-CVE-2024-12085
Red Hat Enterprise Linux 10rsyncFixed0:3.4.1-2.el10RHBA-2025:6470
Red Hat Enterprise Linux 10rsync-daemonFixed0:3.4.1-2.el10RHBA-2025:6470
Red Hat Enterprise Linux 10rsync-rrsyncFixed0:3.4.1-2.el10RHBA-2025:6470
Red Hat Enterprise Linux 9rsyncFixed0:3.2.3-20.el9_5.1RHSA-2025:0324
Red Hat Enterprise Linux 9rsync-daemonFixed0:3.2.3-20.el9_5.1RHSA-2025:0324
Red Hat Enterprise Linux 8rsyncFixed0:3.1.3-20.el8_10RHSA-2025:0325
Red Hat Enterprise Linux 8rsync-daemonFixed0:3.1.3-20.el8_10RHSA-2025:0325
AlmaLinux 9rsyncFixed3.2.3-20.el9_5.1ALSA-2025:0324
AlmaLinux 9rsync-daemonFixed3.2.3-20.el9_5.1ALSA-2025:0324
AlmaLinux 8rsyncFixed3.1.3-20.el8_10ALSA-2025:0325
AlmaLinux 8rsync-daemonFixed3.1.3-20.el8_10ALSA-2025:0325
Rocky Linux 9rsyncFixed0:3.2.3-20.el9_5.1RLSA-2025:0324
Rocky Linux 8rsyncFixed0:3.1.3-20.el8_10RLSA-2025:0325
Alpine Linux 3.24rsyncFixed3.4.0-r0ALPINE-CVE-2024-12085
Alpine Linux 3.23rsyncFixed3.4.0-r0ALPINE-CVE-2024-12085
Alpine Linux 3.22rsyncFixed3.4.0-r0ALPINE-CVE-2024-12085
Alpine Linux 3.21rsyncFixed3.4.0-r0ALPINE-CVE-2024-12085
Alpine Linux 3.20rsyncFixed3.4.0-r0ALPINE-CVE-2024-12085
Alpine Linux 3.19rsyncFixed3.4.0-r0ALPINE-CVE-2024-12085
Alpine Linux 3.18rsyncFixed3.4.0-r0ALPINE-CVE-2024-12085

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Seeing as this vulnerability relies on information leakage coming from the presence of data in the uninitialized memory of the `sum2` buffer, a potential mitigation involves compiling rsync with the `-ftrivial-auto-var-init=zero` option set. This mitigates the issue because it initializes the `sum2` variable's memory with zeroes to prevent uninitialized memory disclosure.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.