Out-of-Bounds Affecting bash package, versions [4.2,4.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-UNMANAGED-BASH-2368339
  • published26 Jan 2022
  • disclosed18 Jun 2019
  • creditUnknown

Introduced: 18 Jun 2019

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

How to fix?

Upgrade bash to version 4.4 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-Bounds. 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 Scores

version 3.1