Security advisory
Vulnerability in dirhistory plugin Description: the widgets that go back and forward in the directory history, triggered by pressing Alt-Left and Alt-Right, use functions that unsafely execute eval on directory names. If you cd into a directory with a carefully-crafted name, then press Alt-Left, the system is subject to command injection. Impacted areas: - Functions pop_past and pop_future in dirhistory plugin.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3725
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:19 UTC · Revision 1
Source evidence
Vulnerability in dirhistory plugin Description: the widgets that go back and forward in the directory history, triggered by pressing Alt-Left and Alt-Right, use functions that unsafely execute eval on directory names. If you cd into a directory with a carefully-crafted name, then press Alt-Left, the system is subject to command injection. Impacted areas: - Functions pop_past and pop_future in dirhistory plugin.
osv:CVE-2021-3725
Complete source record
{
"id": "ab80d0d702e1279da4d01794966c28fd849d9155fe101390b94d7092b3aaa0d6",
"url": "https://osv.dev/vulnerability/CVE-2021-3725",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3725",
"summary": "Vulnerability in dirhistory plugin Description: the widgets that go back and forward in the directory history, triggered by pressing Alt-Left and Alt-Right, use functions that unsafely execute eval on directory names. If you cd into a directory with a carefully-crafted name, then press Alt-Left, the system is subject to command injection. Impacted areas: - Functions pop_past and pop_future in dirhistory plugin.",
"evidence": "osv:CVE-2021-3725",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-3725",
"aliases": [
"CVE-2021-3725"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ohmyzsh/ohmyzsh",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "06fc5fb"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "06fc5fb"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3725.json"
}
}
],
"modified": "2026-10-20T10:53:51.633663610Z",
"provider": "osv",
"references": [
"https://github.com/ohmyzsh/ohmyzsh/commit/06fc5fb"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:planetargon:oh_my_zsh:*:*:*:*:*:*:*:*"
],
"vendor_product": "planetargon:oh_my_zsh",
"extracted_events": [
{
"range": [
{
"fixed": "11-11-2021"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3725",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384701,
"published_at": "2021-11-30T10:15:08.67+00:00"
}