CVE-2012-6711
mediumpriority · track · 31EPSS 0.005 · 45 %ileEUUSEPSS · scored 2026-10-28
A heap-based buffer overflow exists in GNU Bash before 4.3 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 attacker, who can provide data to print through the "echo -e" built-in function, may use this flaw to crash a script or execute code with the privileges of the bash process. This occurs because ansicstr() in lib/sh/strtrans.c mishandles u32cconv().
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.6–7.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (24)
External citations — patches, advisories, analysis.
- http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=863d31ae775d56b785dc5b0105b6d251515d81d5cnnvd
- https://access.redhat.com/security/cve/cve-2012-6711cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=1721071cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2012-6711cnnvd
- https://packetstormsecurity.com/files/155229/Ubuntu-Security-Notice-USN-4180-1.htmlcnnvd
- https://support.f5.com/csp/article/K05122252cnnvd
- https://usn.ubuntu.com/4180-1/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2019.3755/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan