CVE-2021-3726
JSON

7.5high

OS Command Injection in ohmyzsh/ohmyzsh

Severity
7.5high CVSS:3.1 by @huntrdev
Exploit likelihood
0.81% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntrdev

Description

# Vulnerability in `title` function **Description**: the `title` function defined in `lib/termsupport.zsh` uses `print` to set the terminal title to a user-supplied string. In Oh My Zsh, this function is always used securely, but custom user code could use the `title` function in a way that is unsafe. **Fixed in**: [a263cdac](https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac). **Impacted areas**: - `title` function in `lib/termsupport.zsh`. - Custom user code using the `title` function.

Affected

Product or packageVersionsReported by
ohmyzsh ohmyzsh/ohmyzshfrom unspecified before a263cdacCVE List
planetargon oh_my_zshbefore 2021-11-11NVD

All scores

@huntrdev7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

# Vulnerability in `title` function **Description**: the `title` function defined in `lib/termsupport.zsh` uses `print` to set the terminal title to a user-supplied string. In Oh My Zsh, this function is always used securely, but custom user code could use the `title` function in a way that is unsafe. **Fixed in**: [a263cdac](https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac). **Impacted areas**: - `title` function in `lib/termsupport.zsh`. - Custom user code using the `title` function.

NVD (es)

# Vulnerabilidad en la función "title" **Descripción**: la función "title" definida en "lib/termsupport.zsh" usa "print" para establecer el título de la terminal a una cadena proporcionada por el usuario. En Oh My Zsh, esta función es siempre usada de forma segura, pero el código de usuario personalizado podría usar la función "title" de forma no segura. **Corregido en**: [a263cdac](https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac). **Áreas afectadas**: - Función "title" en "lib/termsupport.zsh". - Código de usuario personalizado usando la función "title"

References

Sources

SourceRecordLicence
CVE ListCVE-2021-3726 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-3726 changed 2026-06-17Public domain