CVE-2008-0386: Input Validation

Published Jan 21, 2008
·
Updated

Description of problem: The generic handler of xdg-open (i.e. when not running in KDE, GNOME or XFCE) has the following code:

browserwitharg=echo "$browser" | sed s#%s#"$1"#

if [ x"$browserwitharg" = x"$browser" ]; then "$browser" "$1"; else $browserwitharg; fi

sed interprets any commands in the argument and the result is executed by the script.

Version-Release number of selected component (if applicable): xdg-utils-1.0.2-2.fc8

How reproducible: Always

Steps to Reproduce: 1. uninstall perl-File-MimeInfo package (not necessary with xdg-utils-1.0.2-3) 2. start plain X session 3. xdg-open 'http://foo.org/bar#;g;sx$xtouch:foox' Actual results: File foo created.

Expected results: The page opened in a web browser.

Additional info:

Other sources

Xdg-utils 1.0.2 and earlier allows user-assisted remote attackers to execute arbitrary commands via shell metacharacters in a URL argument to (1) xdg-open or (2) xdg-email.

Affected Software

11 affected componentsFixes available
redhat/1.0.2<4.
4.
Mandrakesoft Mandrake Linux=2007.1
Mandrakesoft Mandrake Linux=2007.1
Mandrakesoft Mandrake Linux=2008.0
Mandrakesoft Mandrake Linux=2008.0
Gentoo Xdg-utils<=1.0.2
All of the following
Any of the following
Mandrakesoft Mandrake Linux=2007.1
Mandrakesoft Mandrake Linux=2007.1
Mandrakesoft Mandrake Linux=2008.0
Mandrakesoft Mandrake Linux=2008.0
Gentoo Xdg-utils<=1.0.2

Event History

Feb 4, 2008
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
11:00 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2008-0386?

CVE-2008-0386 is classified as a moderate severity vulnerability.

2

How do I fix CVE-2008-0386?

To fix CVE-2008-0386, update xdg-utils to version 1.0.3 or later.

3

Which software versions are affected by CVE-2008-0386?

CVE-2008-0386 affects xdg-utils versions 1.0.2 and earlier.

4

What type of attacks does CVE-2008-0386 allow?

CVE-2008-0386 allows user-assisted remote attackers to execute arbitrary commands.

5

Can CVE-2008-0386 affect my Linux system?

CVE-2008-0386 can affect Linux systems using vulnerable versions of xdg-utils.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203