CVE-2021-3726 HIGH

CVE-2021-3726: OS Command Injection in ohmyzsh/ohmyzsh

Vendor Ohmyzsh
Product ohmyzsh/ohmyzsh
Weakness CWE-78
Published November 30, 2021
Last update August 3, 2024

CVSS base score

7.5/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction Required
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

# 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.

Key dates

02Disclosure timeline

November 30, 2021 CVE published
August 3, 2024 Record updated