---
title: "CVE-2021-45444"
canonical_url: "https://pkgseek.com/security/CVE-2021-45444"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2021-45444

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.

CVE-2021-45444 is rated HIGH (7.8), with 10 indexed affected package builds across 2 distributions.

- **Severity / Score**: HIGH (7.8)
- **Affected builds**: 10
- **Affected distros**: 2
- **Distros with fixed_in**: Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | zsh | 5.5.1-6.el8_1.2 | 5.5.1-9.el8 |
| Oracle Linux | 8 | zsh-html | 5.5.1-6.el8_1.2 | 5.5.1-9.el8 |
| Ubuntu | focal | zsh | 5.8-3ubuntu1 | 5.8-3ubuntu1.1 |
| Ubuntu | focal | zsh-common | 5.8-3ubuntu1 | 5.8-3ubuntu1.1 |
| Ubuntu | focal | zsh-dev | 5.8-3ubuntu1 | 5.8-3ubuntu1.1 |
| Ubuntu | focal | zsh-doc | 5.8-3ubuntu1 | 5.8-3ubuntu1.1 |
| Ubuntu | jammy | zsh | 5.8.1-1 | — |
| Ubuntu | jammy | zsh-common | 5.8.1-1 | — |
| Ubuntu | jammy | zsh-dev | 5.8.1-1 | — |
| Ubuntu | jammy | zsh-doc | 5.8.1-1 | — |
