Rsync checksum comparison uninitialized stack memory disclosure
CVE-2024-12085 is an information disclosure vulnerability in the rsync server/daemon implementation affecting rsync versions up to and including 3.3.0. The flaw is triggered during file checksum comparison logic, where an attacker can manipulate the checksum length parameter (s2length) so that rsync compares a checksum against uninitialized memory. As a result, the daemon can disclose one byte of uninitialized stack data at a time to a remote attacker. The issue is described as occurring in the rsync daemon rather than the rsync client application.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a proof-of-concept exploit for CVE-2024-12085, an infoleak vulnerability in rsync 3.2.7. The main exploit is implemented in 'exploit.py', which connects to a hardcoded rsync server at 127.0.0.1:1234, targeting a module named 'test' and a file 'hello.txt'. The exploit crafts and sends a series of protocol messages to the rsync server, exploiting the vulnerability to leak up to 56 bytes of stack memory, which are then printed as 8-byte words. The exploit is not versatile; it is hardcoded for the specific module and file, and checksum calculation is not fully automated. Supporting files include 'checksum.py' (for checksum calculation, incomplete), 'port-forwarding.py' (a TCP port forwarding utility for capturing traffic), and 'test.sh' (a bash script to automate testing with a local rsync daemon). The attack vector is network-based, requiring access to the rsync service. The exploit does not provide remote code execution or shell access, but demonstrates the ability to leak sensitive memory from the server process.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
One of a set of Rsync daemon vulnerabilities (Rsync <= 3.3.0) that can contribute to remote code execution, directory traversal, and/or sensitive information disclosure.
An information leak vulnerability in rsync.
An rsync server vulnerability that can lead to remote code execution.
One of several additional vulnerabilities in the Rsync server implementation for which the Rsync project released fixes.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.