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: 5.1 [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]
CVE-ID: CVE-2012-3410
CWE-ID: CWE-121
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Bash
bash (Alpine package)
SUSE Linux

How to mitigate CVE-2012-3410

Update to version 4.2.

Bash - update to 4.2
bash (Alpine package) - update to 4.1.011-r0

External References

Related Security Bulletins