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

- Severity: High 7.5 (CVSS:3.1, scored by @huntrdev) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-01)
- Published: 2021-11-30T09:30:15.000Z
- Modified: 2026-06-17T04:05:38.770Z
- Weaknesses: CWE-78
- 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.

(As written by CVE List.)

## Affected

- ohmyzsh ohmyzsh/ohmyzsh: from unspecified before a263cdac
- planetargon oh_my_zsh: before 2021-11-11

## Every score

- @huntrdev: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3726](https://www.cve.org/CVERecord?id=CVE-2021-3726), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3726](https://nvd.nist.gov/vuln/detail/CVE-2021-3726), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3726 · Whole record: https://cve.day/CVE-2021-3726.json · Rebuilt by cve.day 2026-11-25T22:58:05.775Z
