CVE-2012-6711 Memory corruption in n/a

High 7.0 Published Updated

A heap-based buffer overflow in GNU Bash allows local attackers to execute arbitrary code or crash scripts via crafted echo commands.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2012-6711?

CVE-2012-6711 is a high-severity memory corruption vulnerability in Redhat Enterprise Linux, published on 18 Jun 2019. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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().

Weakness: CWE-119

Which versions are affected by CVE-2012-6711?

It affects 2 products.

Linux distribution packages (2)
bash SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions4.2-83.6.1
bash SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions4.2-83.6.1

Products include Gnu Bash, Redhat Enterprise Linux.

How do I fix CVE-2012-6711?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2012-6711 being exploited?

There is no known exploitation of CVE-2012-6711 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2012-6711, GHSA-rwf6-27gf-7q62, SUSE-SU-2019:2976-1.

Is CVE-2012-6711 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free