Security advisory
# Vulnerability in `rand-quote` and `hitokoto` plugins **Description**: the `rand-quote` and `hitokoto` fetch quotes from quotationspage.com and hitokoto.cn respectively, do some process on them and then use `print -P` to print them. If these quotes contained the proper symbols, they could trigger command injection. Given that they're an external API, it's not possible to know if the quotes are safe to use. **Fixed in**: [72928432](https://github.com/ohmyzsh/ohmyzsh/commit/72928432). **Impacted areas**: - `rand-quote` plugin (`quote` function). - `hitokoto` plugin (`hitokoto` function).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3727
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:50 UTC · Revision 1
Source evidence
# Vulnerability in `rand-quote` and `hitokoto` plugins **Description**: the `rand-quote` and `hitokoto` fetch quotes from quotationspage.com and hitokoto.cn respectively, do some process on them and then use `print -P` to print them. If these quotes contained the proper symbols, they could trigger command injection. Given that they're an external API, it's not possible to know if the quotes are safe to use. **Fixed in**: [72928432](https://github.com/ohmyzsh/ohmyzsh/commit/72928432). **Impacted areas**: - `rand-quote` plugin (`quote` function). - `hitokoto` plugin (`hitokoto` function).
osv:CVE-2021-3727
Complete source record
{
"id": "ec27d5bea31bff497023a5948e66001ad44a8c5fca04463e4c032beb064772de",
"url": "https://osv.dev/vulnerability/CVE-2021-3727",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3727",
"summary": "# Vulnerability in `rand-quote` and `hitokoto` plugins **Description**: the `rand-quote` and `hitokoto` fetch quotes from quotationspage.com and hitokoto.cn respectively, do some process on them and then use `print -P` to print them. If these quotes contained the proper symbols, they could trigger command injection. Given that they're an external API, it's not possible to know if the quotes are safe to use. **Fixed in**: [72928432](https://github.com/ohmyzsh/ohmyzsh/commit/72928432). **Impacted areas**: - `rand-quote` plugin (`quote` function). - `hitokoto` plugin (`hitokoto` function).",
"evidence": "osv:CVE-2021-3727",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-3727",
"aliases": [
"CVE-2021-3727"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ohmyzsh/ohmyzsh",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "72928432"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "72928432"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3727.json"
}
}
],
"modified": "2026-10-20T10:54:49.229800439Z",
"provider": "osv",
"references": [
"https://github.com/ohmyzsh/ohmyzsh/commit/72928432"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:planetargon:oh_my_zsh:*:*:*:*:*:*:*:*"
],
"vendor_product": "planetargon:oh_my_zsh",
"extracted_events": [
{
"range": [
{
"fixed": "72928432"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3727",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386206,
"published_at": "2021-11-30T10:15:08.94+00:00"
}