Improper Handling of Additional Special Element Affecting zsh-users/zsh package, versions [,5.8.1)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.14% (51st 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-ZSHUSERSZSH-2400722
  • published14 Feb 2022
  • disclosed14 Feb 2022
  • creditUnknown

Introduced: 14 Feb 2022

CVE-2021-45444  (opens in a new tab)
CWE-167  (opens in a new tab)

How to fix?

Upgrade zsh-users/zsh to version 5.8.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Handling of Additional Special Element. An attacker can achieve code execution if they control a command output inside the prompt via a support argument such as %F and %K. This occurs because of recursive PROMPT_SUBST expansion.

CVSS Scores

version 3.1