Executive Summary

Summary
Title rsync: Execution of arbitrary code
Informations
Name GLSA-200804-16 First vendor Publication 2008-04-17
Vendor Gentoo Last vendor Modification 2008-04-17
Severity (Vendor) High Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Cvss Base Score 7.5 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

A buffer overflow in rsync might lead to the remote execution of arbitrary code when extended attributes are being used.

Background

rsync is a file transfer program to keep remote directories synchronized.

Description

Sebastian Krahmer of SUSE reported an integer overflow in the expand_item_list() function in the file util.c which might lead to a heap-based buffer overflow when extended attribute (xattr) support is enabled.

Impact

A remote attacker could send a file containing specially crafted extended attributes to an rsync deamon, or entice a user to sync from an rsync server containing specially crafted files, possibly leading to the execution of arbitrary code.

Please note that extended attributes are only enabled when USE="acl" is enabled, which is the default setting.

Workaround

Disable extended attributes in the rsync daemon by setting "refuse options = xattrs" in the file "/etc/rsyncd.conf" (or append "xattrs" to an existing "refuse" statement). When synchronizing to a server, do not provide the "-X" parameter to rsync. You can also disable the "acl" USE flag for rsync and recompile the package.

Resolution

All rsync users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/rsync-2.6.9-r6"

References

[ 1 ] CVE-2008-1720 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1720

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200804-16.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200804-16.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-119 Failure to Constrain Operations within the Bounds of a Memory Buffer

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:17462
 
Oval ID: oval:org.mitre.oval:def:17462
Title: USN-600-1 -- rsync vulnerability
Description: Sebastian Krahmer discovered that rsync could overflow when handling ACLs.
Family: unix Class: patch
Reference(s): USN-600-1
CVE-2008-1720
Version: 7
Platform(s): Ubuntu 7.04
Ubuntu 7.10
Product(s): rsync
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:18444
 
Oval ID: oval:org.mitre.oval:def:18444
Title: DSA-1545-1 rsync
Description: Sebastian Krahmer discovered that an integer overflow in rsync's code for handling extended attributes may lead to arbitrary code execution.
Family: unix Class: patch
Reference(s): DSA-1545-1
CVE-2008-1720
Version: 7
Platform(s): Debian GNU/Linux 4.0
Product(s): rsync
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 33

OpenVAS Exploits

Date Description
2009-04-09 Name : Mandriva Update for rsync MDVSA-2008:084 (rsync)
File : nvt/gb_mandriva_MDVSA_2008_084.nasl
2009-03-23 Name : Ubuntu Update for rsync vulnerability USN-600-1
File : nvt/gb_ubuntu_USN_600_1.nasl
2009-02-17 Name : Fedora Update for rsync FEDORA-2008-3047
File : nvt/gb_fedora_2008_3047_rsync_fc8.nasl
2009-02-17 Name : Fedora Update for rsync FEDORA-2008-3060
File : nvt/gb_fedora_2008_3060_rsync_fc7.nasl
2008-09-24 Name : Gentoo Security Advisory GLSA 200804-16 (rsync)
File : nvt/glsa_200804_16.nasl
2008-04-21 Name : Debian Security Advisory DSA 1545-1 (rsync)
File : nvt/deb_1545_1.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
44368 rsync Extended Attribute (xattr) Support Unspecified Overflow

Nessus® Vulnerability Scanner

Date Description
2009-04-23 Name : The remote Mandriva Linux host is missing a security update.
File : mandriva_MDVSA-2008-084.nasl - Type : ACT_GATHER_INFO
2008-05-01 Name : The remote openSUSE host is missing a security update.
File : suse_rsync-5207.nasl - Type : ACT_GATHER_INFO
2008-04-22 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200804-16.nasl - Type : ACT_GATHER_INFO
2008-04-18 Name : The remote Fedora host is missing a security update.
File : fedora_2008-3047.nasl - Type : ACT_GATHER_INFO
2008-04-18 Name : The remote Fedora host is missing a security update.
File : fedora_2008-3060.nasl - Type : ACT_GATHER_INFO
2008-04-17 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1545.nasl - Type : ACT_GATHER_INFO
2008-04-17 Name : The remote Ubuntu host is missing a security-related patch.
File : ubuntu_USN-600-1.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:35:45
  • Multiple Updates