CVE-2012-6711
published high CVSS 3.0 · 7.0bash: heap-based buffer overflow during echo of unsupported characters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| SUSE / openSUSE | SLE-12-SP1 | bashppc64le | Advisory build | 4.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | bashs390x | Advisory build | 4.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | bashx86_64 | Advisory build | 4.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | bash-docnoarch | Advisory build | 4.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | libreadline6ppc64le | Advisory build | 6.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | libreadline6s390x | Advisory build | 6.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | libreadline6x86_64 | Advisory build | 6.2-83.6.1 | SUSE-SU-2019:2976-1 |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP1 | libreadline6-32bits390x | Advisory build | 6.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | libreadline6-32bitx86_64 | Advisory build | 6.2-83.6.1 | SUSE-SU-2019:2976-1 |
| SUSE / openSUSE | SLE-12-SP1 | readline-docnoarch | Advisory build | 6.2-83.6.1 | SUSE-SU-2019:2976-1 |
Description
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- mitre · cna
- Vector string
- CVSS:3.0/AC:H/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
6- http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=863d31ae775d56b785dc5b0105b6d251515d81d5
- 108824 http://www.securityfocus.com/bid/108824
- https://bugzilla.redhat.com/show_bug.cgi?id=1721071
- https://support.f5.com/csp/article/K05122252
- https://support.f5.com/csp/article/K05122252?utm_source=f5support&%3Butm_medium=RSS
- USN-4180-1 https://usn.ubuntu.com/4180-1/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5a7f5410512dc6185875bfeb54a072fc4ce308f44c10e0f2aae7a0d749cefb35
- Ingested
- 23 Sep 2026, 07:39:27 UTC
- Source record
- Official CVE record