ZeroHour

CVE-2024-12084

PoC mass

Heap-Based Buffer Overflow in rsync Daemon Enables Potential Remote Code Execution

CVSS 3.1
9.8 critical
EPSS
72%p99
Published
()
Modified
AI analysis

CVE-2024-12084 is a critical (CVSS 9.8) heap-based buffer overflow in the rsync daemon, caused by improper handling of an attacker-controlled checksum length (s2length): when MAX_DIGEST_LEN exceeds the fixed SUM_LENGTH of 16 bytes, a connecting peer can cause an out-of-bounds write into the fixed-size sum2 buffer. A remote attacker who can reach the rsync daemon needs no privileges or user interaction to trigger the flaw, and the resulting heap corruption can lead to remote code execution on the server (as demonstrated in the referenced Google security research) or crash the daemon. Any system running a vulnerable rsync daemon is affected — including rsync shipped with Red Hat Enterprise Linux, SUSE Linux, AlmaLinux, Arch Linux, Gentoo, NixOS and SmartOS — with the highest risk on servers where the daemon is exposed on TCP port 873. No confirmed in-the-wild exploitation is documented yet (the CVE is not on CISA KEV), but a public proof-of-concept exists from Google Cloud researchers and EPSS assigns a 72.1% probability of exploitation within 30 days, indicating high imminent risk.

What to do: Upgrade rsync to 3.4.1 or later, or install the patched rsync package from your distribution (Red Hat, SUSE, AlmaLinux, Arch, Gentoo, NixOS and SmartOS have all shipped fixes). Until patched, restrict TCP port 873 to trusted networks or disable the rsync daemon where it is not needed. Audit hosts for listening rsync daemons and verify the installed rsync version against your vendor's advisory.

Affected
Samba (upstream rsync) rsync
Red Hat Enterprise Linux (rsync)
AlmaLinux (rsync)
Arch Linux (rsync)
Gentoo Linux (rsync)
NixOS (rsync)
Novell (SUSE) SUSE Linux (rsync)
Triton DataCenter (Joyent) SmartOS (rsync)
Linux (rsync daemon)
Estimated exposure
massmillions of servers ship rsync across the affected distributions, with roughly 30,000–60,000 rsync daemons directly exposed on the public internet — rsync is bundled by default on essentially every Unix-like system, giving an installed base in the millions across the listed vendors, while public internet scans persistently show tens of thousands of open rsync daemons (TCP/873) that are…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

A heap-based buffer overflow flaw was found in the rsync daemon. This issue is due to improper handling of attacker-controlled checksum lengths (s2length) in the code. When MAX_DIGEST_LEN exceeds the fixed SUM_LENGTH (16 bytes), an attacker can write out of bounds in the sum2 buffer.

Vendors
sambaalmalinuxarchlinuxgentoonixosnovelltritondatacenterredhat
Products
rsync, almalinux, arch linux, linux, nixos, suse linux, smartos, enterprise linux
Weakness
CWE-122, CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news