Xdg-Utils: Arbitrary command execution

Security Team  Contact Address

Updated January 30, 2008

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200801-21 / xdg-utils
Release Date January 30, 2008
Latest Revision January 30, 2008: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
x11-misc/xdg-utils < 1.0.2-r1 >= 1.0.2-r1 All supported architectures

Related bugreports: #207331

Synopsis

A vulnerability has been discovered in Xdg-Utils, allowing for the remote execution of arbitrary commands.

2.  Impact Information

Background

Xdg-Utils is a set of tools allowing all applications to easily integrate with the Free Desktop configuration.

Description

Miroslav Lichvar discovered that the "xdg-open" and "xdg-email" shell scripts do not properly sanitize their input before processing it.

Impact

A remote attacker could entice a user to open a specially crafted link with a vulnerable application using Xdg-Utils (e.g. an email client), resulting in the execution of arbitrary code with the privileges of the user running the application.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All Xdg-Utils users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=x11-misc/xdg-utils-1.0.2-r1"

4.  References