#VU32768 Stack-based buffer overflow in Bash


Published: 2012-08-28 | Updated: 2020-07-28

Vulnerability identifier: #VU32768

Vulnerability risk: Medium

CVSSv3.1: 5.2 [CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2012-3410

CWE-ID: CWE-121

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
Bash
Universal components / Libraries / Scripting languages

Vendor: GNU

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing a long filename in /dev/fd, which is not properly handled when expanding the /dev/fd prefix. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Update to version 4.2.

Vulnerable software versions

Bash: 4.0 - 4.1.11


External links
http:ftp://ftp.gnu.org/pub/gnu/bash/bash-4.2-patches/bash42-033
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681278
http://secunia.com/advisories/51086
http://security.gentoo.org/glsa/glsa-201210-05.xml
http://www.mandriva.com/security/advisories?name=MDVSA-2012:128
http://www.openwall.com/lists/oss-security/2012/07/11/11
http://www.openwall.com/lists/oss-security/2012/07/11/22
http://www.openwall.com/lists/oss-security/2012/07/12/4
http://www.securityfocus.com/bid/54937
http://exchange.xforce.ibmcloud.com/vulnerabilities/77551
http://hermes.opensuse.org/messages/15227834


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability