CVE-2024-12084Rsync: heap buffer overflow in rsync due to improper checksum length handling
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.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | rsync | Fixed | 3.2.7-1ubuntu1.1 | UBUNTU-CVE-2024-12084 |
| Ubuntu 22.04 | rsync | Fixed | 3.2.7-0ubuntu0.22.04.3 | UBUNTU-CVE-2024-12084 |
| Debian 14 | rsync | Fixed | 3.3.0+ds1-3 | DEBIAN-CVE-2024-12084 |
| Debian 13 | rsync | Fixed | 3.3.0+ds1-3 | DEBIAN-CVE-2024-12084 |
| Debian 12 | rsync | Fixed | 3.2.7-1+deb12u1 | DEBIAN-CVE-2024-12084 |
| Red Hat Enterprise Linux 10 | rsync | Fixed | 0:3.4.1-2.el10 | RHBA-2025:6470 |
| Red Hat Enterprise Linux 10 | rsync-daemon | Fixed | 0:3.4.1-2.el10 | RHBA-2025:6470 |
| Red Hat Enterprise Linux 10 | rsync-rrsync | Fixed | 0:3.4.1-2.el10 | RHBA-2025:6470 |
| Red Hat Enterprise Linux 9 | rsync | Not affected | ||
| Red Hat Enterprise Linux 9 | rsync-daemon | Not affected | ||
| Red Hat Enterprise Linux 9 | rsync-rrsync | Not affected | ||
| Red Hat Enterprise Linux 8 | rsync | Not affected | ||
| Red Hat Enterprise Linux 8 | rsync-daemon | Not affected | ||
| Red Hat Enterprise Linux 7 | rsync | Not affected | ||
| Red Hat Enterprise Linux 6 | rsync | Not affected | ||
| Alpine Linux 3.24 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12084 |
| Alpine Linux 3.23 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12084 |
| Alpine Linux 3.22 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12084 |
| Alpine Linux 3.21 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12084 |
| Alpine Linux 3.20 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12084 |
| Alpine Linux 3.19 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12084 |
| Alpine Linux 3.18 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12084 |
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.
- rsync: affected: 3.2.7, 3.3.0
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Workaround: 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.
Vendor advisories:
- https://access.redhat.com/errata/RHBA-2025:6470 (vendor-advisory)
References
- https://access.redhat.com/errata/RHBA-2025:6470
- https://access.redhat.com/security/cve/CVE-2024-12084
- https://bugzilla.redhat.com/show_bug.cgi?id=2330527
- https://kb.cert.org/vuls/id/952657
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.