Heap-based Buffer Overflow Affecting bash package, versions *


Severity

Recommended
medium

Based on CentOS security rating.

Threat Intelligence

EPSS
0.04% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CENTOS7-BASH-1938975
  • published26 Jul 2021
  • disclosed18 Jun 2019

Introduced: 18 Jun 2019

CVE-2012-6711  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

There is no fixed version for Centos:7 bash.

NVD Description

Note: Versions mentioned in the description apply only to the upstream bash package and not the bash package as distributed by Centos. See How to fix? for Centos:7 relevant fixed versions and status.

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