Stack-based buffer overflow in Bash - CVE-2012-3410

 

Stack-based buffer overflow in Bash - CVE-2012-3410

Published: August 28, 2012 / Updated: July 28, 2020


Vulnerability identifier: #VU32768
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2012-3410
CWE-ID: CWE-121
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: GNU
Affected software:
Bash

Detailed vulnerability 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.


How to mitigate CVE-2012-3410

Update to version 4.2.

Sources