GNU Bash 'ls' Control Character Command Injection Vulnerability

BID:37776

Info

GNU Bash 'ls' Control Character Command Injection Vulnerability

Bugtraq ID: 37776
Class: Input Validation Error
CVE: CVE-2010-0002
Remote: No
Local: Yes
Published: Jan 13 2010 12:00AM
Updated: Jan 13 2010 12:00AM
Credit: Eric Piel
Vulnerable: Mandriva Linux Mandrake 2010.0 x86_64
Mandriva Linux Mandrake 2010.0
Mandriva Linux Mandrake 2009.1 x86_64
Mandriva Linux Mandrake 2009.1
Mandriva Linux Mandrake 2009.0 x86_64
Mandriva Linux Mandrake 2009.0
Mandriva Linux Mandrake 2008.0 x86_64
Mandriva Linux Mandrake 2008.0
MandrakeSoft Multi Network Firewall 2.0
MandrakeSoft Enterprise Server 5 x86_64
MandrakeSoft Enterprise Server 5
MandrakeSoft Corporate Server 4.0 x86_64
MandrakeSoft Corporate Server 4.0
GNU GNU bash 2.3
GNU GNU bash 2.2
GNU GNU bash 2.1
GNU GNU bash 2.0
GNU GNU bash 1.14
GNU GNU bash 4.1
GNU GNU bash 4.0
GNU GNU bash 3.00.0(2)
Not Vulnerable:

Discussion

GNU Bash 'ls' Control Character Command Injection Vulnerability

GNU Bash is prone to a command-injection vulnerability because it fails to adequately sanitize control characters in the 'ls' command.

Attackers can exploit this issue to execute arbitrary commands in a bash terminal; other attacks may also be possible.

Exploit / POC

GNU Bash 'ls' Control Character Command Injection Vulnerability

Local attackers can exploit this issue with readily available tools.

The following example is available:

1. mkdir $(echo -e 'couc\x08\x08asd')
2. ls

Displays:
coasd/

Expected:
couc??asd/

Solution / Fix

GNU Bash 'ls' Control Character Command Injection Vulnerability

Solution:
Updates are available. Please see the references for details.


Mandriva Linux Mandrake 2010.0 x86_64

Mandriva Linux Mandrake 2009.1 x86_64

Mandriva Linux Mandrake 2009.0

MandrakeSoft Enterprise Server 5 x86_64

MandrakeSoft Corporate Server 4.0

Mandriva Linux Mandrake 2009.0 x86_64

Mandriva Linux Mandrake 2008.0 x86_64

MandrakeSoft Enterprise Server 5

Mandriva Linux Mandrake 2008.0

Mandriva Linux Mandrake 2009.1

Mandriva Linux Mandrake 2010.0

MandrakeSoft Multi Network Firewall 2.0

MandrakeSoft Corporate Server 4.0 x86_64

References

GNU Bash 'ls' Control Character Command Injection Vulnerability

References:

© CVE.report 2026

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. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report