CVE-2012-6711

bash: heap-based buffer overflow during echo of unsupported characters

Published Jun 18, 2019 CVSS 3.0 · 7 High EPSS < 1% KEV · Not listed
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().

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2012-6552 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().
Ubuntu USN Ubuntu USN USN-4180-1 Bash vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00146}

epss

{'score': 0.00107}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 6, 2024, 9:36 PM
Reserved
Jun 18, 2019, 12:00 AM
Status
Modified
Published
Jun 18, 2019, 6:15 PM
Modified
Jun 16, 2026, 11:48 PM
Severity
Moderate
Public date
Jun 18, 2019, 12:00 AM