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().
CVSS vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.0 | Impact: 5.9Attack Vector: Local
Complexity: High
Privileges: Low
User Interaction: None
Scope: Unchanged
Confidentiality: High
Integrity: High
Availability: High
Affected Packages2 packages
Also affects: Enterprise Linux 7.0
🔴Vulnerability Details
3GHSAGHSA-rwf6-27gf-7q62: A heap-based buffer overflow exists in GNU Bash before 4↗2022-04-23 ▶ OSVCVE-2012-6711: A heap-based buffer overflow exists in GNU Bash before 4↗2019-06-18 ▶ CVEListCVE-2012-6711: A heap-based buffer overflow exists in GNU Bash before 4↗2019-06-18 ▶ 📋Vendor Advisories
3UbuntuBash vulnerability↗2019-11-11 ▶ Red Hatbash: heap-based buffer overflow during echo of unsupported characters↗2019-06-18 ▶ DebianCVE-2012-6711: bash - A heap-based buffer overflow exists in GNU Bash before 4.3 when wide characters,...↗2012 ▶ 💬Community
2BugzillaCVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters [fedora-all]↗2019-06-19 ▶ BugzillaCVE-2012-6711 bash: heap-based buffer overflow during echo of unsupported characters↗2019-06-17 ▶