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 package | Versions | Reported by |
|---|---|---|
| ohmyzsh ohmyzsh/ohmyzsh | from unspecified before a263cdac | CVE List |
| planetargon oh_my_zsh | before 2021-11-11 | NVD |
All scores
| @huntrdev | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV: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
| https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3726 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-3726 changed 2026-06-17 | Public domain |