Rsync: heap buffer overflow in rsync due to improper checksum length handling
Summary
| CVE | CVE-2024-12084 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-01-15 15:15:10 UTC |
| Updated | 2026-06-29 21:16:29 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.8 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.720590000 probability, percentile 0.993550000 (date 2026-07-01)
Problem Types: CWE-122 | CWE-787 | CWE-122 Heap-based Buffer Overflow
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Almalinux | Almalinux | 10.0 | - | All | All |
| Operating System | Archlinux | Arch Linux | - | All | All | All |
| Operating System | Gentoo | Linux | - | All | All | All |
| Operating System | Nixos | Nixos | All | All | All | All |
| Operating System | Nixos | Nixos | 24.11 | All | All | All |
| Operating System | Novell | Suse Linux | - | All | All | All |
| Operating System | Redhat | Enterprise Linux | 10.0 | All | All | All |
| Application | Samba | Rsync | 3.2.7 | - | All | All |
| Application | Samba | Rsync | 3.3.0 | - | All | All |
| Operating System | Tritondatacenter | Smartos | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 10 | unaffected 0:3.4.1-2.el10 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Container Platform 4 | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| security.netapp.com/advisory/ntap-20250131-0002 | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | |
| access.redhat.com/security/cve/CVE-2024-12084 | [email protected] | access.redhat.com | Third Party Advisory |
| www.kb.cert.org/vuls/id/952657 | af854a3a-2127-422b-91ae-364da2661108 | www.kb.cert.org | |
| kb.cert.org/vuls/id/952657 | [email protected] | kb.cert.org | Third Party Advisory |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | Issue Tracking, Third Party Advisory |
| access.redhat.com/errata/RHBA-2025:6470 | [email protected] | access.redhat.com | |
| github.com/google/security-research/security/advisories/GHSA-p5pg-x43v-mvqj | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | Exploit, Vendor Advisory |
| www.openwall.com/lists/oss-security/2025/01/14/6 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Red Hat would like to thank Jasiel Spelman (Google), Pedro Gallegos (Google), and Simon Scannell (Google) for reporting this issue. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2024-12-05T09:32:44.653Z | Reported to Red Hat. |
| CNA | 2025-01-14T15:06:00.000Z | Made public. |
Workarounds
CNA: 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.