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.
{ "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" } ] }
{ "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" } ] }
{ "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" } ] }