7.8 High
CVSS3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
5.1 Medium
CVSS2
Access Vector
NETWORK
Access Complexity
HIGH
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:H/Au:N/C:P/I:P/A:P
0.001 Low
EPSS
Percentile
37.6%
In zsh before 5.8.1, an attacker can achieve code execution if they control
a command output inside the prompt, as demonstrated by a %F argument. This
occurs because of recursive PROMPT_SUBST expansion.
Author | Note |
---|---|
rodrigo-zaiden | The commits fdb8b0ce and bdc4d70a are related to a partial commit that can be used in case an user can’t update to a patched version that contains c187154f commit. |
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
ubuntu | 18.04 | noarch | zsh | < 5.4.2-3ubuntu3.2 | UNKNOWN |
ubuntu | 20.04 | noarch | zsh | < 5.8-3ubuntu1.1 | UNKNOWN |
ubuntu | 21.10 | noarch | zsh | < 5.8-6ubuntu0.1 | UNKNOWN |
ubuntu | 22.04 | noarch | zsh | < any | UNKNOWN |
ubuntu | 16.04 | noarch | zsh | < 5.1.1-1ubuntu2.3+esm1) Available with Ubuntu Pro or Ubuntu Pro (Infra-only | UNKNOWN |
launchpad.net/bugs/cve/CVE-2021-45444
nvd.nist.gov/vuln/detail/CVE-2021-45444
security-tracker.debian.org/tracker/CVE-2021-45444
sourceforge.net/p/zsh/code/ci/bdc4d70a7e033b754e68a8659a037ea0fc5f38de/
sourceforge.net/p/zsh/code/ci/c187154f47697cdbf822c2f9d714d570ed4a0fd1/
sourceforge.net/p/zsh/code/ci/fdb8b0ce6244ff26bf55e0fd825310a58d0d3156/
ubuntu.com/security/notices/USN-5325-1
www.cve.org/CVERecord?id=CVE-2021-45444
7.8 High
CVSS3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
5.1 Medium
CVSS2
Access Vector
NETWORK
Access Complexity
HIGH
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:H/Au:N/C:P/I:P/A:P
0.001 Low
EPSS
Percentile
37.6%