UBUNTU-CVE-2021-45444

Source
https://ubuntu.com/security/CVE-2021-45444
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45444.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-45444
Related
Published
2022-02-14T12:15:00Z
Modified
2024-10-15T14:08:30Z
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

Ubuntu:Pro:16.04:LTS / zsh

Package

Name
zsh
Purl
pkg:deb/ubuntu/zsh?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.1.1-1ubuntu2.3+esm1

Affected versions

5.*

5.1.1-1ubuntu1
5.1.1-1ubuntu2
5.1.1-1ubuntu2.1
5.1.1-1ubuntu2.2
5.1.1-1ubuntu2.3

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh"
        },
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh-common"
        },
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh-dbg"
        },
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh-dbgsym"
        },
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh-dev"
        },
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh-doc"
        },
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh-static"
        },
        {
            "binary_version": "5.1.1-1ubuntu2.3+esm1",
            "binary_name": "zsh-static-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / zsh

Package

Name
zsh
Purl
pkg:deb/ubuntu/zsh?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.4.2-3ubuntu3.2

Affected versions

5.*

5.2-5ubuntu1
5.4.2-3ubuntu1
5.4.2-3ubuntu2
5.4.2-3ubuntu3
5.4.2-3ubuntu3.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "5.4.2-3ubuntu3.2",
            "binary_name": "zsh"
        },
        {
            "binary_version": "5.4.2-3ubuntu3.2",
            "binary_name": "zsh-common"
        },
        {
            "binary_version": "5.4.2-3ubuntu3.2",
            "binary_name": "zsh-dbgsym"
        },
        {
            "binary_version": "5.4.2-3ubuntu3.2",
            "binary_name": "zsh-dev"
        },
        {
            "binary_version": "5.4.2-3ubuntu3.2",
            "binary_name": "zsh-doc"
        },
        {
            "binary_version": "5.4.2-3ubuntu3.2",
            "binary_name": "zsh-static"
        },
        {
            "binary_version": "5.4.2-3ubuntu3.2",
            "binary_name": "zsh-static-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / zsh

Package

Name
zsh
Purl
pkg:deb/ubuntu/zsh?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.8-3ubuntu1.1

Affected versions

5.*

5.7.1-1ubuntu2
5.8-2ubuntu2
5.8-3ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "5.8-3ubuntu1.1",
            "binary_name": "zsh"
        },
        {
            "binary_version": "5.8-3ubuntu1.1",
            "binary_name": "zsh-common"
        },
        {
            "binary_version": "5.8-3ubuntu1.1",
            "binary_name": "zsh-dbgsym"
        },
        {
            "binary_version": "5.8-3ubuntu1.1",
            "binary_name": "zsh-dev"
        },
        {
            "binary_version": "5.8-3ubuntu1.1",
            "binary_name": "zsh-doc"
        },
        {
            "binary_version": "5.8-3ubuntu1.1",
            "binary_name": "zsh-static"
        },
        {
            "binary_version": "5.8-3ubuntu1.1",
            "binary_name": "zsh-static-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / zsh

Package

Name
zsh
Purl
pkg:deb/ubuntu/zsh?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

5.*

5.8-6build1
5.8-10
5.8.1-1

Ecosystem specific

{
    "ubuntu_priority": "low"
}