cve.bz

CVE-2024-12084 Out-of-bounds Write

9.8 criticalExploit referenceEPSS 73%Fix available

Critical (9.8). EPSS 73% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
73% (unchanged from 73% a week ago; 72% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-02-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-12084 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-12084?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-12084?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-12084 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2024-12084

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2024-12084](https://cve.bz/cve/badge/CVE-2024-12084.svg)](https://cve.bz/cve/CVE-2024-12084)

HTML:

<a href="https://cve.bz/cve/CVE-2024-12084"><img src="https://cve.bz/cve/badge/CVE-2024-12084.svg" alt="CVE-2024-12084"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:3.4.1-2.el10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12rsync3.2.7-1+deb12u1DEBIAN-CVE-2024-12084 DSA-5843-1
Debian13, 14rsync3.3.0+ds1-3DEBIAN-CVE-2024-12084
Ubuntu20.04:LTSrsync3.1.3-8ubuntu0.8USN-7206-1
Ubuntu22.04:LTSrsync3.2.7-0ubuntu0.22.04.3UBUNTU-CVE-2024-12084 USN-7206-1
Ubuntu24.04:LTSrsync3.2.7-1ubuntu1.1UBUNTU-CVE-2024-12084 USN-7206-1
UbuntuPro:14.04:LTSrsync3.1.0-2ubuntu0.4+esm1USN-7206-1
UbuntuPro:16.04:LTSrsync3.1.1-3ubuntu1.3+esm3USN-7206-1
UbuntuPro:18.04:LTSrsync3.1.2-2.1ubuntu1.6+esm1USN-7206-1
Red Hatenterprise_linux:10.0rsync, rsync-daemon, rsync-rrsync and 2 more0:3.4.1-2.el10RHBA-2025:6470
SUSELinux Enterprise Module for Basesystem 15 SP6rsync3.2.7-150600.3.8.1SUSE-SU-2025:0156-1
SUSELinux Micro 6.0rsync3.2.7-4.1SUSE-SU-2025:20122-1
SUSELinux Micro 6.1rsync3.3.0-slfo.1.1_3.1SUSE-SU-2025:20223-1
openSUSELeap 15.6rsync3.2.7-150600.3.8.1SUSE-SU-2025:0156-1
openSUSETumbleweedrsync3.4.1-1.1openSUSE-SU-2025:14665-1
Alpinev3.18, v3.19, v3.20 and 4 morersync3.4.0-r0ALPINE-CVE-2024-12084
Azure Linux2rsync3.4.1-1AZL-55646
Azure Linux3rsync3.4.1-1AZL-55691
Alpaquita23rsync3.2.7-r1BELL-CVE-2024-12084
Alpaquitastreamrsync3.4.1-r0BELL-CVE-2024-12084

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability only affects a limited range of Rsync versions, rsync-3.2.7 and rsync-3.3.0. Red Hat Enterprise Linux does not ship these versions of Rsync and is not affected.

Red Hat considers the severity of this vulnerability to be Critical only in cases where anonymous read access is allowed. Depending on the configuration and implementation choices, the severity may be significantly reduced for your organization.

In all supported versions of Red Hat Enterprise Linux, Rsync is not configured to run as a service by default.

There are two different methods for utilizing Rsync from a remote system: contacting an Rsync daemon directly with TCP or using a remote-shell program as the transport (such as ssh or rsh). The risk of this vulnerability changes depending on which connection method is used.

The default configuration of an Rsync daemon (rsyncd) running as a service does not require authentication. While rsyncd can be configured to require users to provide valid credentials, anonymous read access is a common configuration used by file sharing and mirroring hosts. The capabilities of the rsyncd process may vary depending on the user configured to run the Rsync daemon. In this scenario, an attacker only requires anonymous read access to a Rsync server in order to trigger this vulnerability.

Remote-shell programs provide a layer of defense because they enforce users to have valid credentials while initiating the shell connection. When Rsync is invoked via this method, it spawns as a child of the session and will not remain running indefinitely. Since the process is spawned within the security context of the user, an attacker who is able to exploit this vulnerability remains restricted to the capabilities of the user account used to initiate the session. Authentication and network restrictions significantly reduce the attack surface and restricting permissions for remote shell users is always encouraged to limit the impact of compromised credentials.

Red Hat's mitigation

Red Hat recommends filtering untrusted connections to Rsync via firewall rules on the host and on network firewall appliances.

Additionally, systems which only need to provide remote Rsync access to users with known identities can enable authentication using the ```auth users``` parameter in their rsyncd configuration file (rsyncd.conf).

Systems that provide anonymous read access to hosted files via Rsync, such as mirror hosts, do not have reasonable mitigation options available. We strongly urge operators using vulnerable versions of Rsync to update as soon as possible.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10rsync-0:3.4.1-2.el10Fixed 2025-05-13RHBA-2025:6470
Red Hat Enterprise Linux 6rsyncNot affected
Red Hat Enterprise Linux 7rsyncNot affected
Red Hat Enterprise Linux 8rsyncNot affected
Red Hat Enterprise Linux 9rsyncNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-12084.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET EXPLOIT Samba rsync s2length Checksum Length Heap Buffer Overflow (CVE-2024-12084) sid 2067354

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON