Heap-Based Buffer Overflow in rsync Daemon - CVE-2024-12084
Summary
ALPINE-CVE-2024-12084: A heap-based buffer overflow flaw was found in the rsync daemon. Affects rsync versions < 3.4.0-r0. Fixed in 3.4.0-r0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
rsync is a widely used utility for efficiently transferring and synchronizing files across computer systems. It is known for its speed and versatility, allowing users to copy files locally or over a network while minimizing data transfer by using delta encoding. However, the rsync daemon has been found vulnerable to a heap-based buffer overflow, which can be exploited if not addressed promptly.
Vulnerability Detail
A heap-based buffer overflow flaw was discovered in the rsync daemon, stemming from improper handling of attacker-controlled checksum lengths (s2length). When the maximum digest length exceeds the fixed sum length of 16 bytes, an attacker can exploit this vulnerability to write out of bounds in the sum2 buffer. This could lead to potential data corruption or arbitrary code execution, posing significant security risks to systems running the affected versions of rsync.
How To Fix
Minimum fixed version
3.4.0-r0
This is the first release that contains the fix.
sudo apk add --upgrade rsync
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, consider disabling the rsync daemon or restricting access to it until the package can be updated. This can be done by stopping the rsync service with the command: 'service rsync stop'.
Conclusion
The vulnerability identified as CVE-2024-12084 in the rsync daemon poses significant risks due to a heap-based buffer overflow. It is crucial for users to update to the patched version 3.4.0-r0 to safeguard their systems. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.
See every vulnerability recorded for rsync →
FAQ
CVE-2024-12084 refers to a specific vulnerability in the rsync daemon that allows for a heap-based buffer overflow due to improper handling of checksum lengths.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to access the code.
Exploiting this vulnerability can lead to data corruption or arbitrary code execution, which may compromise the security of the affected system.
Yes, the patched version of rsync is 3.4.0-r0. Updating to this version will mitigate the vulnerability.
Vulert provides a platform to monitor open-source vulnerabilities in real-time. You can use the Vulert playground to check if your application is affected by vulnerabilities like CVE-2024-12084.
References
Related vulnerabilities
Recent vulnerabilities recorded for rsync.