Vulnerability · Published Jan 15, 2025 · Assigned by redhat

CVE-2024-12084Rsync: heap buffer overflow in rsync due to improper checksum length handling

Critical 9.8

In plain English

A critical-severity heap buffer overflow in rsync. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 72.5% (higher than 99.4% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)72.5%top 0.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20rsync3.4.0-r0ALPINE-CVE-2024-12084
Alpine:v3.21rsync3.4.0-r0ALPINE-CVE-2024-12084
Alpine:v3.22rsync3.4.0-r0ALPINE-CVE-2024-12084
Alpine:v3.23rsync3.4.0-r0ALPINE-CVE-2024-12084
Alpine:v3.24rsync3.4.0-r0ALPINE-CVE-2024-12084
Debian:12rsync3.2.7-1+deb12u1DSA-5843-1
Debian:12rsync3.2.7-1+deb12u1DEBIAN-CVE-2024-12084
Debian:13rsync3.3.0+ds1-3DEBIAN-CVE-2024-12084
Debian:14rsync3.3.0+ds1-3DEBIAN-CVE-2024-12084
Ubuntu:22.04:LTSrsync3.2.7-0ubuntu0.22.04.3USN-7206-1
Ubuntu:22.04:LTSrsync3.2.7-0ubuntu0.22.04.3UBUNTU-CVE-2024-12084
Ubuntu:24.04:LTSrsync3.2.7-1ubuntu1.1UBUNTU-CVE-2024-12084
Ubuntu:24.04:LTSrsync3.2.7-1ubuntu1.1USN-7206-1

Affected products (as reported)

Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References