Heap-based buffer overflow in Bash - CVE-2012-6711

 

Heap-based buffer overflow in Bash - CVE-2012-6711

Published: May 23, 2025


Vulnerability identifier: #VU109674
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-6711
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error within the ansicstr() function in lib/sh/strtrans.c when wide characters, not supported by the current locale set in the LC_CTYPE environment variable, are printed through the echo built-in function. A local user can trigger a heap-based buffer overflow and escalate privileges on the system.


Affected software

Bash
Ubuntu
bash (Ubuntu package)
Dell EMC Unity Operating Environment (OE)
Dell EMC Unity VSA Operating Environment (OE)

How to mitigate CVE-2012-6711

Install updates from vendor's website.

Bash - update to 4.3
bash (Ubuntu package) - update to 4.2-2ubuntu2.9
Dell EMC Unity Operating Environment (OE) - update to 5.0.3.0.5.014
Dell EMC Unity VSA Operating Environment (OE) - update to 5.0.3.0.5.014

External References

Related Security Bulletins