Linux rsync open_socket_out function buffer overflow

linux-rsync-opensocketout-bo (15108) The risk level is classified as HighHigh Risk

Description:

rsync is vulnerable to a stack-based buffer overflow, caused by a vulnerability in the open_socket_out function of the socket.c file. A local attacker could exploit this vulnerability to overflow a buffer and cause a segmentation fault, and possibly execute arbitrary code on the system.


Consequences:

Gain Privileges

Remedy:

Upgrade to the latest version of rsync (2.6.1 or later), when it becomes available from the rsync download Web page. See References.

References:

  • rsync download Web page: rsync.
  • Vuln-Dev Mailing List, Mon Feb 09 2004 - 15:13:02 CST : rsync <= 2.5.7 local buffer overflow (no root today:).
  • CVE-2004-2093: Buffer overflow in the open_socket_out function in socket.c for rsync 2.5.7 and earlier allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a long RSYNC_PROXY environment variable. NOTE: since rsync is not setuid, this issue does not provide any additional privileges beyond those that are already available to the user. Therefore this issue may be REJECTED in the future.
  • OSVDB ID: 45182: rsync socket.c open_socket_out Function RSYNC_PROXY Environment Variable Overflow Local DoS

Platforms Affected:

  • GNU rsync 2.5.7

Reported:

Feb 09, 2004

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page