Rsync Buffer Overflow and Information Disclosure Vulnerability (CVE-2024-12084/CVE-2024-12085) Notification

Rsync Buffer Overflow and Information Disclosure Vulnerability (CVE-2024-12084/CVE-2024-12085) Notification

janeiro 17, 2025 | NSFOCUS

Overview

Recently, NSFOCUS detected that Rsync issued a security announcement and fixed the buffer overflow and information leakage vulnerabilities in Rsync (CVE-2024-12084/CVE-2024-12085). The combination of the two vulnerabilities can realize remote code execution. Please take measures to protect them as soon as possible.

CVE-2024-12084: There is a heap buffer overflow vulnerability in the Rsync daemon. Due to improper processing of user-controlled checksum length (s2length), when the default configuration of Rsyncd allows anonymous file synchronization, attackers can write data into an area of memory beyond the allocated range by constructing a malicious s2length value, thus realizing remote code execution. The CVSS score is 9.8.

CVE-2024-12085: The Rsync daemon has the problem of improper restrictions on operations within the memory buffer range. Due to incorrect initialization of the memory, when the Rsync compares file checksums, the attacker can read uninitialized memory data through specific operations, resulting in information leakage. The CVSS score is 7.5.

Reference link: https://download.samba.org/pub/rsync/NEWS#3.4.0

Scope of Impact

Affected version

  • Rsync <= 3.3.0

Unaffected Version

  • Rsync >= 3.4.0

Mitigation

Official upgrade

At present, a new version has been officially released to fix the above vulnerabilities. Please upgrade the affected version for protection as soon as possible.

Download link: https://rsync.samba.org/download.html

Other protective measures

If relevant users cannot upgrade temporarily, the following measures can be taken for temporary relief:

CVE-2024-12084: Modify the default configuration of Rsyncd, add auth users and secrets file, create password file containing user and password, and disable the anonymous read permission of Rsync.

CVE-2024-12085: Compile Rsync with the “-ftrivial-auto-var-init=zero” option set to initialize the memory of the variable “sum2” from zero.

Statement

This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.

About NSFOCUS

NSFOCUS, a pioneering leader in cybersecurity, is dedicated to safeguarding telecommunications, Internet service providers, hosting providers, and enterprises from sophisticated cyberattacks.

Founded in 2000, NSFOCUS operates globally with over 4000 employees at two headquarters in Beijing, China, and Santa Clara, CA, USA, and over 50 offices worldwide. It has a proven track record of protecting over 25% of the Fortune Global 500 companies, including four of the five largest banks and six of the world’s top ten telecommunications companies.

Leveraging technical prowess and innovation, NSFOCUS delivers a comprehensive suite of security solutions, including the Intelligent Security Operations Platform (ISOP) for modern SOC, DDoS Protection, Continuous Threat Exposure Management (CTEM) Service and Web Application and API Protection (WAAP). All the solutions and services are augmented by the Security Large Language Model (SecLLM), ML, patented algorithms and other cutting-edge research achievements developed by NSFOCUS.