CVE-2021-45444

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-45444
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45444.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-45444
Related
Published
2022-02-14T12:15:15Z
Modified
2024-12-05T15:18:32.744932Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Alpine:v3.12 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1

Alpine:v3.13 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1

Alpine:v3.14 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2

Alpine:v3.15 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2
5.8-r3

Alpine:v3.16 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2
5.8-r3
5.8-r4

Alpine:v3.17 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2
5.8-r3
5.8-r4

Alpine:v3.18 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2
5.8-r3
5.8-r4

Alpine:v3.19 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2
5.8-r3
5.8-r4

Alpine:v3.20 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2
5.8-r3
5.8-r4

Alpine:v3.21 / zsh

Package

Name
zsh
Purl
pkg:apk/alpine/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-r0

Affected versions

4.*

4.3.11-r1
4.3.12-r0
4.3.15-r0
4.3.16-r0
4.3.17-r0

5.*

5.0.0-r0
5.0.2-r0
5.0.2-r1
5.0.2-r2
5.0.4-r0
5.0.5-r0
5.0.6-r0
5.0.7-r0
5.0.8-r0
5.0.8-r1
5.1-r0
5.1.1-r0
5.1.1-r1
5.2-r0
5.2-r1
5.2-r2
5.2-r3
5.3.1-r0
5.4.1-r0
5.4.2-r0
5.4.2-r1
5.5-r0
5.5.1-r0
5.5.1-r1
5.6.2-r0
5.7.1-r0
5.8-r0
5.8-r1
5.8-r2
5.8-r3
5.8-r4

Debian:11 / zsh

Package

Name
zsh
Purl
pkg:deb/debian/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8-6+deb11u1

Affected versions

5.*

5.8-6

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / zsh

Package

Name
zsh
Purl
pkg:deb/debian/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / zsh

Package

Name
zsh
Purl
pkg:deb/debian/zsh?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/zsh-users/zsh

Affected ranges

Type
GIT
Repo
https://github.com/zsh-users/zsh
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

5.*

5.1.1-test-2
5.3.1-test-2
5.4
5.4.1

Other

post-opt-arg
pre-func-move
pre-opt-arg

zsg-4.*

zsg-4.1.1-test-2

zsh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.7
zsh-4.3.8
zsh-4.3.9
zsh-4.3.9-dev-3
zsh-4.3.9-dev-5

zsh-5.*

zsh-5.0.0
zsh-5.0.0-test-1
zsh-5.0.1
zsh-5.0.2
zsh-5.0.2-test-1
zsh-5.0.2-test-2
zsh-5.0.2-test-3
zsh-5.0.3
zsh-5.0.3-test-1
zsh-5.0.3-test-2
zsh-5.0.4
zsh-5.0.5
zsh-5.0.5-dev-1
zsh-5.0.5-dev-2
zsh-5.0.5-dev-3
zsh-5.0.6
zsh-5.0.6-dev-1
zsh-5.0.7
zsh-5.0.7-dev-2
zsh-5.0.7-dev-4
zsh-5.0.8
zsh-5.0.8-test-2
zsh-5.0.8-test-3
zsh-5.1
zsh-5.1-test-1
zsh-5.1.1
zsh-5.1.1-test-1
zsh-5.1.1-test-2
zsh-5.1.1-test-3
zsh-5.2
zsh-5.2-test-1
zsh-5.2-test-2
zsh-5.2-test-3
zsh-5.3
zsh-5.3.1
zsh-5.4
zsh-5.4.1
zsh-5.4.2
zsh-5.4.2-test-1
zsh-5.4.2-test-2
zsh-5.5
zsh-5.5.1
zsh-5.5.1-test-1
zsh-5.5.1-test-2
zsh-5.6
zsh-5.6.1
zsh-5.6.2
zsh-5.6.2-test-2
zsh-5.6.2-test-3
zsh-5.7
zsh-5.7.1
zsh-5.7.1-test-1
zsh-5.7.1-test-2
zsh-5.7.1-test-3
zsh-5.8