CVE-2014-6271: Remote code execution through bash
Bash executed trailing code in environment variable function definitions, regardless of the variable name. In many common configurations, an attacker could exploit this over the network to run arbitrary code.
seclists.org
Published on seclists.org
In many common configurations, this vulnerability is exploitable over the network.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
In many common configurations, this vulnerability is exploitable over the network, allowing remote code execution.
What the attacker needed
Bash used as a shell; environment variables influenced by attacker
The fix
Official upstream patches were to be released by the GNU bash maintainer.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Bash is a common command-line shell. It lets you define functions using environment variables, but it mistakenly ran extra commands hidden after the function definition. If a program passed user input into such a variable, an attacker could run their own commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.