CVE-2012-6711
published 2019-06-18CVE-2012-6711: 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…
PriorityP338high7.8CVSS 3.0
AVLACLPRLUINSUCHIHAH
EPSS
0.51%
40.1th percentile
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().
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | bash | < bash 4.3-1 (bookworm) | bash 4.3-1 (bookworm) |
| gnu | bash | >= 0 < 4.3-1 | 4.3-1 |
| gnu | bash | >= 0 < 4.3-1 | 4.3-1 |
| gnu | bash | >= 0 < 4.3-1 | 4.3-1 |
| gnu | bash | >= 0 < 4.3-1 | 4.3-1 |
| gnu | bash | 4.2 – 4.3 | — |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.0HIGH
vendor_redhat7.0HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Bash vulnerability
vendor_ubuntu·2019-11-11
CVE-2012-6711 Bash vulnerability
Title: Bash vulnerability
Summary: Bash could be made to crash or execute arbitrary code if it received
a specially crafted input.
It was discovered that Bash incorrectly handled certain inputs.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code.
Instructions: After a standard system update you need to restart Bash to make
all the necessary changes.
Red Hat
bash: heap-based buffer overflow during echo of unsupported characters
vendor_redhat·2019-06-18·CVSS 7.0
CVE-2012-6711 [HIGH] CWE-122 bash: heap-based buffer overflow during echo of unsupported characters
bash: heap-based buffer overflow during echo of unsupported characters
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().
A heap-based buffer overflow was discovered in bash when wide characters, not supported by the current locale set in LC_CTYPE environment variable, are printed through the echo built-in function. A local attacker, who can provide data to print through the `echo -
Debian
CVE-2012-6711: bash - A heap-based buffer overflow exists in GNU Bash before 4.3 when wide characters,...
vendor_debian·2012·CVSS 7.0
CVE-2012-6711 [HIGH] CVE-2012-6711: bash - A heap-based buffer overflow exists in GNU Bash before 4.3 when wide characters,...
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().
Scope: local
bookworm: resolved (fixed in 4.3-1)
bullseye: resolved (fixed in 4.3-1)
forky: resolved (fixed in 4.3-1)
sid: resolved (fixed in 4.3-1)
trixie: resolved (fixed in 4.3-1)
GHSA
GHSA-rwf6-27gf-7q62: A heap-based buffer overflow exists in GNU Bash before 4
ghsa_unreviewed·2022-04-23
CVE-2012-6711 [HIGH] CWE-119 GHSA-rwf6-27gf-7q62: A heap-based buffer overflow exists in GNU Bash before 4
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().
OSV
CVE-2012-6711: A heap-based buffer overflow exists in GNU Bash before 4
osv·2019-06-18·CVSS 7.8
CVE-2012-6711 [HIGH] CVE-2012-6711: A heap-based buffer overflow exists in GNU Bash before 4
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().
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters [fedora-all]
bugzilla·2019-06-19·CVSS 7.0
CVE-2012-6711 [HIGH] CVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters [fedora-all]
CVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multipl
Bugzilla
CVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters
bugzilla·2019-06-17·CVSS 7.0
CVE-2012-6711 [HIGH] CVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters
CVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters
An heap-based buffer overflow was discovered in bash, between versions 4.2 and 4.3, in function lib/sh/strtrans.c:ansicstr() caused by a wrong handling of unsupported characters in u32cconv(). When LC_CTYPE locale cannot correctly convert a wide character to a multibyte sequence, through the wctomb() function, u32cconv() returns a negative value that is used to update a pointer to a buffer in ansicstr(), resulting in a write out of the buffer's bounds. A local attacker, who can provide data to print through the `echo` builtin function, may use this flaw crash a script or execute code with the privileges of the bash process (e.g. escape a restricted bash or elevate privileges if a setuid script is vulnerab
http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=863d31ae775d56b785dc5b0105b6d251515d81d5http://www.securityfocus.com/bid/108824https://bugzilla.redhat.com/show_bug.cgi?id=1721071https://support.f5.com/csp/article/K05122252https://support.f5.com/csp/article/K05122252?utm_source=f5support&%3Butm_medium=RSShttps://usn.ubuntu.com/4180-1/http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=863d31ae775d56b785dc5b0105b6d251515d81d5http://www.securityfocus.com/bid/108824https://bugzilla.redhat.com/show_bug.cgi?id=1721071https://support.f5.com/csp/article/K05122252https://support.f5.com/csp/article/K05122252?utm_source=f5support&%3Butm_medium=RSShttps://usn.ubuntu.com/4180-1/
2019-06-18
Published